SlideShare a Scribd company logo
1 of 15
Download to read offline
Welcome
Agenda
1. Trademarks.
2.Introduction.
3.What would you like explained
later?
4.Theme designer mode, debugging
and URL Swapping.
5.Browser development tools.
6.Block border radius change.
7. Changing a layout to have no
blocks.
8. Identifiying and using your own
icons.
9. Page background colour & semi-
transparent content area.
10.Block heading background colour
setting.
11. Where to find help and progression.
12. Summary and homework.
13. 'Tell me how to....'.
www.iconfinder.com/iconsets/49handdrawing
www.iconfinder.com/iconsets/49handdrawing
Trademarks
Bitnami – bitnami.com/trademark.
Firefox® is a registered trademark of the Mozilla Foundation.
Ubuntu® is a registered trademark of Canonical Ltd -
www.ubuntu.com/legal/terms-and-policies/intellectual-property-policy
Windows® is registered trademark of the Microsoft Corporation.
Oracle® is a registered trademark of Oracle® and/or its affiliates. Other names may be
trademarks of their respective owners.
MoodleTM is a registered trademark of 'Martin Dougiamas' – moodle.com/trademarks.
I am independent from the organisations listed above and am in no way speaking for or
endorced by them.
www.iconfinder.com/iconsets/49handdrawing
Introduction
Introduction:
Customising your Moodle theme can be scary. I will show you how to both decipher a
theme with tools and make some basic alterations.
Prerequisites for trying things out for yourself:
● A test Moodle installation: See presentation course for details of my iMoot 2014
presentation.
● Shoelace (if desired): moodle.org/plugins/view.php?plugin=theme_shoelace.
● A little knowledge of CSS: www.w3schools.com/css.
Me:
Gareth J Barnard – Course formats and themes developer, 'Themes' and 'Courses and
course formats' forums moderator, small scale core developer, software engineer and
educator.
www.iconfinder.com/iconsets/49handdrawing
What would you like explained later?
In addition to the published
agenda, is there a particular theme
skill that you would like explained
at the end?
Have a think and time permitting
I'll have a go at explaining how as
many as possible can be done.
Note down the idea and put in the
chat when we get to 'Tell me how
to....'.
Theme designer mode, Debugging and URL Swapping
Theme designer mode:
● Allows changes to be apparent as
soon as you refresh the page.
●
Individual style sheets served
separately rather than combined into
one, so you can debug.
● Dramatically slows down page load
time, so definitely development only
with hardly any other users.
Debugging:
● Shows code faults and development
information in more detail.
URL Swapping:
● Very useful setting where you can
change theme with a HTTP 'GET'
parameter in the URL, such as
'theme=clean' prefixed with '?' if
there are no other parameters and
'&' if there are.
●
Great for getting out of problems if
things break.
● Able to quickly compare two
themes if something looks odd.
www.iconfinder.com/iconsets/49handdrawing
Browser development tools
Most modern browsers have
them.
Features:
●
Pulling apart the components
of the page, both HTML, CSS
and JS so that you can explore.
● Make temporary changes and
see the effect.
●
Lots of other debugging tools,
such as 'network requests' and
the 'console'.
www.iconfinder.com/iconsets/49handdrawing
Block border radius change
1. Using Shoelace for M2.9.
2. Discover what to change.
3. Create the CSS.
4. Place in 'Custom CSS' box.
5. See the effect.
www.iconfinder.com/iconsets/49handdrawing
Changing a layout to have no blocks
Will change the 'report' layout.
1. Can be slightly different in
each theme.
2. Demonstrated in:
●
Shoelace – config.php.
● Clean via Bootstrap base
config.php.
www.iconfinder.com/iconsets/49handdrawing
Identifiying and using your own icons
1. Shoelace already has the icons
overriden, so will use 'Clean' to
change a core and plugin icon.
2. Use the browser development tool
to interrogate the HTML to find the
'code' that helps us identify the
image.
3. Moodle uses 'SVG' files first, then
falls back to 'png' / 'jpg' / 'gif' if the
browser does not support them or
there is no 'svg' available.
www.iconfinder.com/iconsets/49handdrawing
Ref: docs.moodle.org/dev/Themes_overview#Files_and_folders
Page background colour & semi-transparent content area
1. Using Shoelace.
2. Use browser development tools
to:
●
Discover.
● Test idea, with:
● Body: #AAD7FD.
● Content: rgba(255, 255, 255,
0.5).
3. Examine theme 'config.php' for
'custom' stylesheet.
4. Implement in 'custom'
stylesheet.
www.iconfinder.com/iconsets/49handdrawing
Block heading background colour setting
1. Using Shoelace as uses PHP LESS
compiler. Will also work with More and
Campus. Other themes will be more
tricky as use older 'CSS pre-processing'
mechanism.
2. We will:
●
Discover the CSS.
●
Define the LESS variable and selector in
'variables-shoelace.less' and
'shoelacecustom.less'.
●
Create the setting in 'settings.php' and
the required language strings.
●
Implement the setting value assignment
in 'lib.php'.
www.iconfinder.com/iconsets/49handdrawing
Refs: docs.moodle.org/dev/Themes_overview#Compiling_LESS_on_the_fly and
docs.moodle.org/dev/Creating_a_theme_settings_page
geek-and-poke.com/geekandpoke/2013/9/18/the-art-of-programming
Where to find help and progression
Where to find help:
Themes forum: moodle.org/mod/forum/view.php?id=46.
Documentation: docs.moodle.org/dev/Themes.
Developer tools:
● Chrome: developer.chrome.com/devtools.
● Firefox: developer.mozilla.org/en/docs/Tools.
● Firebug: getfirebug.com/faq/.
● Internet Explorer:
msdn.microsoft.com/library/bg182326(v=vs.85).
Progression beyond the basics:
● LESS: lesscss.org.
● jQuery: docs.moodle.org/dev/jQuery.
● AMD (and Grunt): docs.moodle.org/dev/Javascript_Modules.
● Grunt: gruntjs.com.
www.iconfinder.com/iconsets/49handdrawing
Summary and homework
Summary
We have learnt about:
● Setting up the environment for
theme development.
●
Browser development tools.
●
Basic customisation.
● How to take things further.
www.iconfinder.com/iconsets/49handdrawing
Homework
Use what you have learnt to:
● Make a change to a theme.
● Take a screen shot of the change
with evidence of what you did.
Greenshot is a good tool for this:
getgreenshot.org.
●
Post the screen shot with a
description in the presentation
course.
● Gain feedback from peers, me and a
badge.
'Tell me how to....'
1. Tell me how to....
2. Q & A.
3. Thank you for attending and
participating. Feedback always
appreciated.
4. About.me/gjbarnard.
geek-and-poke.com/geekandpoke/2014/7/31/hansel-and-geekel
www.iconfinder.com/iconsets/49handdrawing

More Related Content

What's hot

Drupal 8: Most common beginner mistakes
Drupal 8: Most common beginner mistakesDrupal 8: Most common beginner mistakes
Drupal 8: Most common beginner mistakesIztok Smolic
 
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The StartPreventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The StartAcquia
 
45 WordPress Interview Questions
45 WordPress Interview Questions45 WordPress Interview Questions
45 WordPress Interview QuestionsPontus Bergmark
 
Develop, Debug, Learn? - Dotjs2019
Develop, Debug, Learn? - Dotjs2019Develop, Debug, Learn? - Dotjs2019
Develop, Debug, Learn? - Dotjs2019Christian Heilmann
 
Web Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLWeb Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLPatrick Mooney
 
Trello - University of St Andrews web team
Trello - University of St Andrews web teamTrello - University of St Andrews web team
Trello - University of St Andrews web teamGareth Saunders
 
Kirilova.looking back
Kirilova.looking backKirilova.looking back
Kirilova.looking backjenkirilova
 
Master your debugger
Master your debuggerMaster your debugger
Master your debuggerPaul Comanici
 
Creating Content in a Pattern Library
Creating Content in a Pattern LibraryCreating Content in a Pattern Library
Creating Content in a Pattern LibraryRachel DeLauder
 
Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...
Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...
Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...Anthony D. Paul
 
Let's build it on drupal 8
Let's build it on drupal 8Let's build it on drupal 8
Let's build it on drupal 8Montaña Franco
 

What's hot (19)

Using a CSS Framework
Using a CSS FrameworkUsing a CSS Framework
Using a CSS Framework
 
Web design
Web designWeb design
Web design
 
Lesson 04
Lesson 04Lesson 04
Lesson 04
 
Webdesign (2)
Webdesign (2)Webdesign (2)
Webdesign (2)
 
Web design
Web designWeb design
Web design
 
Drupal 8: Most common beginner mistakes
Drupal 8: Most common beginner mistakesDrupal 8: Most common beginner mistakes
Drupal 8: Most common beginner mistakes
 
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The StartPreventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
 
45 WordPress Interview Questions
45 WordPress Interview Questions45 WordPress Interview Questions
45 WordPress Interview Questions
 
Develop, Debug, Learn? - Dotjs2019
Develop, Debug, Learn? - Dotjs2019Develop, Debug, Learn? - Dotjs2019
Develop, Debug, Learn? - Dotjs2019
 
Web Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLWeb Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTML
 
Design for Web
Design for WebDesign for Web
Design for Web
 
Web Designing Classroom Training
Web Designing Classroom TrainingWeb Designing Classroom Training
Web Designing Classroom Training
 
Trello - University of St Andrews web team
Trello - University of St Andrews web teamTrello - University of St Andrews web team
Trello - University of St Andrews web team
 
Kirilova.looking back
Kirilova.looking backKirilova.looking back
Kirilova.looking back
 
Forensic Theming for Drupal
Forensic Theming for DrupalForensic Theming for Drupal
Forensic Theming for Drupal
 
Master your debugger
Master your debuggerMaster your debugger
Master your debugger
 
Creating Content in a Pattern Library
Creating Content in a Pattern LibraryCreating Content in a Pattern Library
Creating Content in a Pattern Library
 
Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...
Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...
Rapid Prototyping with WordPress Page Builders - WordCamp Asheville 2016 - an...
 
Let's build it on drupal 8
Let's build it on drupal 8Let's build it on drupal 8
Let's build it on drupal 8
 

Similar to Theme customisation for beginners

Developing Custom WordPress Themes for Clients
Developing Custom WordPress Themes for ClientsDeveloping Custom WordPress Themes for Clients
Developing Custom WordPress Themes for ClientsSteven Slack
 
Hello Drupal!
Hello Drupal!Hello Drupal!
Hello Drupal!Acquia
 
Web Components
Web ComponentsWeb Components
Web ComponentsFITC
 
Training presentation.pptx
Training presentation.pptxTraining presentation.pptx
Training presentation.pptxNishchaiyaBayla1
 
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018Esteve Castells
 
Upgrading your site from Drupal 6 to Drupal 7
Upgrading your site from Drupal 6 to Drupal 7Upgrading your site from Drupal 6 to Drupal 7
Upgrading your site from Drupal 6 to Drupal 7Andrew Martha
 
Implementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing CompanyImplementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing CompanyMarcos Labad
 
Dojo javascript toolkit
Dojo javascript toolkit Dojo javascript toolkit
Dojo javascript toolkit Predhin Sapru
 
Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014Adrian Roselli
 
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"Taming Drupal Blocks for Content Editors a.k.a. "Snippets"
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"Brian Hay
 
Know the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css frameworkKnow the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css frameworkOmkarsoft Bangalore
 
Spark: Authoring Experience++ in Drupal 7, 8, and Beyond
Spark: Authoring Experience++ in Drupal 7, 8, and BeyondSpark: Authoring Experience++ in Drupal 7, 8, and Beyond
Spark: Authoring Experience++ in Drupal 7, 8, and BeyondAngela Byron
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentEvan Mullins
 
Responsive web design with various grids and frameworks comparison
Responsive web design with various grids and frameworks comparisonResponsive web design with various grids and frameworks comparison
Responsive web design with various grids and frameworks comparisonDhrubaJyoti Dey
 
ENIB 2015 2016 - CAI Web S02E01- Côté Navigateur 3/3 - Web Components avec Po...
ENIB 2015 2016 - CAI Web S02E01- Côté Navigateur 3/3 - Web Components avec Po...ENIB 2015 2016 - CAI Web S02E01- Côté Navigateur 3/3 - Web Components avec Po...
ENIB 2015 2016 - CAI Web S02E01- Côté Navigateur 3/3 - Web Components avec Po...Horacio Gonzalez
 
The Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
The Superhero’s Method of Modern HTML5 Development by RapidValue SolutionsThe Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
The Superhero’s Method of Modern HTML5 Development by RapidValue SolutionsRapidValue
 

Similar to Theme customisation for beginners (20)

Developing Custom WordPress Themes for Clients
Developing Custom WordPress Themes for ClientsDeveloping Custom WordPress Themes for Clients
Developing Custom WordPress Themes for Clients
 
Forensic Theming - DrupalCon London
Forensic Theming - DrupalCon LondonForensic Theming - DrupalCon London
Forensic Theming - DrupalCon London
 
Hello Drupal!
Hello Drupal!Hello Drupal!
Hello Drupal!
 
Pour Noël, devenez chrome extensioniste!
Pour Noël, devenez chrome extensioniste!Pour Noël, devenez chrome extensioniste!
Pour Noël, devenez chrome extensioniste!
 
Building your first webpage
Building your first webpageBuilding your first webpage
Building your first webpage
 
Web Components
Web ComponentsWeb Components
Web Components
 
Training presentation.pptx
Training presentation.pptxTraining presentation.pptx
Training presentation.pptx
 
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
 
Upgrading your site from Drupal 6 to Drupal 7
Upgrading your site from Drupal 6 to Drupal 7Upgrading your site from Drupal 6 to Drupal 7
Upgrading your site from Drupal 6 to Drupal 7
 
Implementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing CompanyImplementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing Company
 
Dojo javascript toolkit
Dojo javascript toolkit Dojo javascript toolkit
Dojo javascript toolkit
 
Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014
 
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"Taming Drupal Blocks for Content Editors a.k.a. "Snippets"
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"
 
Know the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css frameworkKnow the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css framework
 
Spark: Authoring Experience++ in Drupal 7, 8, and Beyond
Spark: Authoring Experience++ in Drupal 7, 8, and BeyondSpark: Authoring Experience++ in Drupal 7, 8, and Beyond
Spark: Authoring Experience++ in Drupal 7, 8, and Beyond
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
 
Responsive web design with various grids and frameworks comparison
Responsive web design with various grids and frameworks comparisonResponsive web design with various grids and frameworks comparison
Responsive web design with various grids and frameworks comparison
 
Site Manager rocks!
Site Manager rocks!Site Manager rocks!
Site Manager rocks!
 
ENIB 2015 2016 - CAI Web S02E01- Côté Navigateur 3/3 - Web Components avec Po...
ENIB 2015 2016 - CAI Web S02E01- Côté Navigateur 3/3 - Web Components avec Po...ENIB 2015 2016 - CAI Web S02E01- Côté Navigateur 3/3 - Web Components avec Po...
ENIB 2015 2016 - CAI Web S02E01- Côté Navigateur 3/3 - Web Components avec Po...
 
The Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
The Superhero’s Method of Modern HTML5 Development by RapidValue SolutionsThe Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
The Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
 

Recently uploaded

PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 

Recently uploaded (20)

PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 

Theme customisation for beginners

  • 2. Agenda 1. Trademarks. 2.Introduction. 3.What would you like explained later? 4.Theme designer mode, debugging and URL Swapping. 5.Browser development tools. 6.Block border radius change. 7. Changing a layout to have no blocks. 8. Identifiying and using your own icons. 9. Page background colour & semi- transparent content area. 10.Block heading background colour setting. 11. Where to find help and progression. 12. Summary and homework. 13. 'Tell me how to....'. www.iconfinder.com/iconsets/49handdrawing www.iconfinder.com/iconsets/49handdrawing
  • 3. Trademarks Bitnami – bitnami.com/trademark. Firefox® is a registered trademark of the Mozilla Foundation. Ubuntu® is a registered trademark of Canonical Ltd - www.ubuntu.com/legal/terms-and-policies/intellectual-property-policy Windows® is registered trademark of the Microsoft Corporation. Oracle® is a registered trademark of Oracle® and/or its affiliates. Other names may be trademarks of their respective owners. MoodleTM is a registered trademark of 'Martin Dougiamas' – moodle.com/trademarks. I am independent from the organisations listed above and am in no way speaking for or endorced by them. www.iconfinder.com/iconsets/49handdrawing
  • 4. Introduction Introduction: Customising your Moodle theme can be scary. I will show you how to both decipher a theme with tools and make some basic alterations. Prerequisites for trying things out for yourself: ● A test Moodle installation: See presentation course for details of my iMoot 2014 presentation. ● Shoelace (if desired): moodle.org/plugins/view.php?plugin=theme_shoelace. ● A little knowledge of CSS: www.w3schools.com/css. Me: Gareth J Barnard – Course formats and themes developer, 'Themes' and 'Courses and course formats' forums moderator, small scale core developer, software engineer and educator. www.iconfinder.com/iconsets/49handdrawing
  • 5. What would you like explained later? In addition to the published agenda, is there a particular theme skill that you would like explained at the end? Have a think and time permitting I'll have a go at explaining how as many as possible can be done. Note down the idea and put in the chat when we get to 'Tell me how to....'.
  • 6. Theme designer mode, Debugging and URL Swapping Theme designer mode: ● Allows changes to be apparent as soon as you refresh the page. ● Individual style sheets served separately rather than combined into one, so you can debug. ● Dramatically slows down page load time, so definitely development only with hardly any other users. Debugging: ● Shows code faults and development information in more detail. URL Swapping: ● Very useful setting where you can change theme with a HTTP 'GET' parameter in the URL, such as 'theme=clean' prefixed with '?' if there are no other parameters and '&' if there are. ● Great for getting out of problems if things break. ● Able to quickly compare two themes if something looks odd. www.iconfinder.com/iconsets/49handdrawing
  • 7. Browser development tools Most modern browsers have them. Features: ● Pulling apart the components of the page, both HTML, CSS and JS so that you can explore. ● Make temporary changes and see the effect. ● Lots of other debugging tools, such as 'network requests' and the 'console'. www.iconfinder.com/iconsets/49handdrawing
  • 8. Block border radius change 1. Using Shoelace for M2.9. 2. Discover what to change. 3. Create the CSS. 4. Place in 'Custom CSS' box. 5. See the effect. www.iconfinder.com/iconsets/49handdrawing
  • 9. Changing a layout to have no blocks Will change the 'report' layout. 1. Can be slightly different in each theme. 2. Demonstrated in: ● Shoelace – config.php. ● Clean via Bootstrap base config.php. www.iconfinder.com/iconsets/49handdrawing
  • 10. Identifiying and using your own icons 1. Shoelace already has the icons overriden, so will use 'Clean' to change a core and plugin icon. 2. Use the browser development tool to interrogate the HTML to find the 'code' that helps us identify the image. 3. Moodle uses 'SVG' files first, then falls back to 'png' / 'jpg' / 'gif' if the browser does not support them or there is no 'svg' available. www.iconfinder.com/iconsets/49handdrawing Ref: docs.moodle.org/dev/Themes_overview#Files_and_folders
  • 11. Page background colour & semi-transparent content area 1. Using Shoelace. 2. Use browser development tools to: ● Discover. ● Test idea, with: ● Body: #AAD7FD. ● Content: rgba(255, 255, 255, 0.5). 3. Examine theme 'config.php' for 'custom' stylesheet. 4. Implement in 'custom' stylesheet. www.iconfinder.com/iconsets/49handdrawing
  • 12. Block heading background colour setting 1. Using Shoelace as uses PHP LESS compiler. Will also work with More and Campus. Other themes will be more tricky as use older 'CSS pre-processing' mechanism. 2. We will: ● Discover the CSS. ● Define the LESS variable and selector in 'variables-shoelace.less' and 'shoelacecustom.less'. ● Create the setting in 'settings.php' and the required language strings. ● Implement the setting value assignment in 'lib.php'. www.iconfinder.com/iconsets/49handdrawing Refs: docs.moodle.org/dev/Themes_overview#Compiling_LESS_on_the_fly and docs.moodle.org/dev/Creating_a_theme_settings_page
  • 13. geek-and-poke.com/geekandpoke/2013/9/18/the-art-of-programming Where to find help and progression Where to find help: Themes forum: moodle.org/mod/forum/view.php?id=46. Documentation: docs.moodle.org/dev/Themes. Developer tools: ● Chrome: developer.chrome.com/devtools. ● Firefox: developer.mozilla.org/en/docs/Tools. ● Firebug: getfirebug.com/faq/. ● Internet Explorer: msdn.microsoft.com/library/bg182326(v=vs.85). Progression beyond the basics: ● LESS: lesscss.org. ● jQuery: docs.moodle.org/dev/jQuery. ● AMD (and Grunt): docs.moodle.org/dev/Javascript_Modules. ● Grunt: gruntjs.com. www.iconfinder.com/iconsets/49handdrawing
  • 14. Summary and homework Summary We have learnt about: ● Setting up the environment for theme development. ● Browser development tools. ● Basic customisation. ● How to take things further. www.iconfinder.com/iconsets/49handdrawing Homework Use what you have learnt to: ● Make a change to a theme. ● Take a screen shot of the change with evidence of what you did. Greenshot is a good tool for this: getgreenshot.org. ● Post the screen shot with a description in the presentation course. ● Gain feedback from peers, me and a badge.
  • 15. 'Tell me how to....' 1. Tell me how to.... 2. Q & A. 3. Thank you for attending and participating. Feedback always appreciated. 4. About.me/gjbarnard. geek-and-poke.com/geekandpoke/2014/7/31/hansel-and-geekel www.iconfinder.com/iconsets/49handdrawing