<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/37/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cstoneburner</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/37/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cstoneburner"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/Special:Contributions/Cstoneburner"/>
	<updated>2026-05-15T01:19:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116402</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116402"/>
		<updated>2014-12-05T04:11:31Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* Moving things */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116401</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116401"/>
		<updated>2014-12-05T04:08:17Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* Miscellaneous */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116400</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116400"/>
		<updated>2014-12-05T04:05:53Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* Moving things */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116398</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116398"/>
		<updated>2014-12-05T03:32:15Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116396</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116396"/>
		<updated>2014-12-05T03:02:55Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* Logo and icons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Git_for_Administrators&amp;diff=116365</id>
		<title>Git for Administrators</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Git_for_Administrators&amp;diff=116365"/>
		<updated>2014-12-05T01:51:39Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
This page describes how to maintain a copy of Moodle on your production server which can easily be upgraded using Git. If you have customisations of Moodle core code, you are advised to follow the instructions in the [[:dev:Git for developers|Git for developers guide]].&lt;br /&gt;
&lt;br /&gt;
To get the most of of Git it is worth making the effort to understand its basic concepts - see the See also section below. It can be a bit of a learning curve, especially if you are used to CVS or Subversion. &lt;br /&gt;
&lt;br /&gt;
== Getting hold of Git (Windows, OSX, Linux and others) ==&lt;br /&gt;
&lt;br /&gt;
Support for Git was, up until recently, mostly confined to Linux but builds are now available for most popular operating systems:&lt;br /&gt;
&lt;br /&gt;
* List of downloads from Git site - http://git-scm.com/download&lt;br /&gt;
&lt;br /&gt;
Once you have downloaded and installed your OS relevant git installation, the git commands in this document should work with your operating system.&lt;br /&gt;
&lt;br /&gt;
== Obtaining the code from Git ==&lt;br /&gt;
&lt;br /&gt;
The command line version of Git is discussed here. Graphical clients are little more than wrappers around the command line version, so you should be able to deduce the correct parameters quite easily. &lt;br /&gt;
&lt;br /&gt;
You can find the official Moodle git repository at git://git.moodle.org/moodle.git (with an official clone at git://github.com/moodle/moodle.git). To initialize your local checkout, use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/webroot&lt;br /&gt;
$ git clone git://git.moodle.org/moodle.git                       (1)&lt;br /&gt;
$ cd moodle&lt;br /&gt;
$ git branch -a                                                   (2)&lt;br /&gt;
$ git branch --track MOODLE_28_STABLE origin/MOODLE_28_STABLE     (3)&lt;br /&gt;
$ git checkout MOODLE_28_STABLE                                   (4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* The command (1) initializes the new local repository as a clone of the &#039;upstream&#039; (i.e. the remote server based) moodle.git repository. The upstream repository is called &#039;origin&#039; by default. It creates a new directory named &#039;&#039;moodle&#039;&#039;, where it downloads all the files. This operation can take a while as it is actually getting the entire history of all Moodle versions&lt;br /&gt;
* The command (2) lists all available branches.&lt;br /&gt;
* Use the command (3) to create a new local branch called MOODLE_28_STABLE and set it to track the remote branch MOODLE_28_STABLE from the upstream repository.&lt;br /&gt;
* The command (4) actually switches to the newly created local branch. &lt;br /&gt;
&lt;br /&gt;
Note that Git has a huge number of options for each command and it&#039;s actually possible to do the above process with a single command (left as an exercise!!).&lt;br /&gt;
&lt;br /&gt;
==Git from behind a firewall==&lt;br /&gt;
&lt;br /&gt;
Git uses a read-only protocol that may be blocked by your firewall (port 9418). If this is a problem, you can use Github&#039;s http version &amp;lt;nowiki&amp;gt;https://github.com/moodle/moodle.git&amp;lt;/nowiki&amp;gt;. It&#039;s a bit slower, so use the Git protocol if you can.&lt;br /&gt;
&lt;br /&gt;
== Updating your installation ==&lt;br /&gt;
&lt;br /&gt;
The Moodle development team performs integration and testing of fixed bugs every Monday and Tuesday. On Wednesday you can install all patches by updating your code. Check the [http://git.moodle.org/gw?p=moodle.git;a=summary shortlog] to see if the official repository has been already updated or not.&lt;br /&gt;
&lt;br /&gt;
To update your code to the latest version (on the MOODLE_28_STABLE branch) &#039;&#039;&#039;all&#039;&#039;&#039; you have to do is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If this is a production site you should still consider the [[Upgrade]] instructions (e.g. take backups).&lt;br /&gt;
&lt;br /&gt;
== Installing a contributed extension from its Git repository ==&lt;br /&gt;
&lt;br /&gt;
This is one way to handle adding plugins from other Git repositories into your Moodle repository. Another way is to use Git Submodules. However, at the time of writing, this is one of Git&#039;s rougher features and should be regarded as an advanced option. &lt;br /&gt;
&lt;br /&gt;
For example, let us say we want to install the [[Certificate module]] from its Git repository into our Moodle 2.8.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ cd mod                                                          (1)&lt;br /&gt;
$ git clone https://github.com/markn86/moodle-mod_certificate.git certificate     (2)&lt;br /&gt;
$ cd certificate&lt;br /&gt;
$ git checkout -b MOODLE_28_STABLE origin/MOODLE_28_STABLE        (3)&lt;br /&gt;
$ git branch -d master                                            (4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The command (1) changes the current directory into the &#039;&#039;mod&#039;&#039; folder of your local Moodle clone. The command (2) creates a new subdirectory &#039;&#039;certificate&#039;&#039; and makes a local clone of vanilla Certificate repository. The command (3) creates a new local branch that will track the remote branch with a Certificate version for Moodle 2.8. The command (4) deletes the &#039;&#039;master&#039;&#039; that was created automatically by git-clone in (2) as we do not want it in this production checkout.&lt;br /&gt;
&lt;br /&gt;
Note: you should check first the compatibility of a module with your Moodle branch by asking directly to the Maintainer before cloning the repo or - if you want to guess it - by issuing the command below before running the command (3), in order to verify what is available among the branches:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git branch -a&lt;br /&gt;
* master&lt;br /&gt;
  remotes/origin/HEAD -&amp;gt; origin/master&lt;br /&gt;
  remotes/origin/MOODLE_20_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_21_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_22_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_23_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_24_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_25_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_26_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_27_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_28_STABLE&lt;br /&gt;
  remotes/origin/master&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will avoid an error message when you issue the command (3) against a nonexistent branch, e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
§ git checkout -b MOODLE_28_STABLE origin/MOODLE_28_STABLE&lt;br /&gt;
fatal: git checkout: updating paths is incompatible with switching branches.&lt;br /&gt;
Did you intend to checkout &#039;origin/MOODLE_28_STABLE&#039; which can not be resolved as commit?&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is wise to put the new directory mod/certificate/ to the list of ignored files of the main Moodle clone, otherwise a status of the main clone will keep reminding you that the new code has not been checked in.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ echo /mod/certificate/ &amp;gt;&amp;gt; .git/info/exclude&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To update your Moodle installation now, you must visit both Git repositories and pull changes from upstream.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ git pull&lt;br /&gt;
$ cd mod/certificate&lt;br /&gt;
$ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Writing a shell script with these lines in the root of Moodle installation is a very good idea. Otherwise it is easy to forget what Git repositories are there within the main Moodle repository.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
; Moodle Docs&lt;br /&gt;
* [[Git FAQ]]&lt;br /&gt;
* [[Windows installation using Git]]&lt;br /&gt;
* [[Git for Mac]]&lt;br /&gt;
* [[:dev:Moodle versions]]&lt;br /&gt;
* For some screenshots see [[User:Frank_Ralf/Git]] (still work in progress)&lt;br /&gt;
* For fixing a Tracker Issue (MDL) / Forking Moodle / CONTRIButing code https://docs.moodle.org/en/User:Sam_Hemelryk/My_Moodle_Git_workflow&lt;br /&gt;
* [[Moodle_Production_Server_with_GIT|Case study Git + Moodle from Technical University Berlin]]&lt;br /&gt;
&lt;br /&gt;
; Moodle forum discussions&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=255175 Github and Moodle deployment for production]&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=213695 Got GIT installed on my site- here&#039;s how!]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=168094 GIT help needed]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=165236 Best way to manage CONTRIB code with GIT]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167063 Handy Git tip for tracking 3rd-party modules and plugins]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167730 Moodle Git repositories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=183693 Git and CVS]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=208904 GIT for dummies]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=211930 Git and upgrading misunderstanding]&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=231046 Clear git guide for Admins (not developers)]&lt;br /&gt;
&lt;br /&gt;
; External resources &lt;br /&gt;
* [http://thamblings.blogspot.com.au/2013/07/upgrading-moodle-from-git.html Deploying Moodle from git - Blog post from a production experience]&lt;br /&gt;
* [http://www.kernel.org/pub/software/scm/git/docs/everyday.html Everyday GIT With 20 Commands Or So]&lt;br /&gt;
* [http://gitref.org/ Git Reference]&lt;br /&gt;
* [http://progit.org/book/ Pro Git book]&lt;br /&gt;
* [http://eigenjoy.com/2008/05/15/git-from-the-bottom-up/ Git from the bottom up]&lt;br /&gt;
&lt;br /&gt;
[[ja:管理者用Git]]&lt;br /&gt;
[[fr:Git_pour_administrateurs]]&lt;br /&gt;
[[es:Git para Administradores]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Git_for_Administrators&amp;diff=116364</id>
		<title>Git for Administrators</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Git_for_Administrators&amp;diff=116364"/>
		<updated>2014-12-05T01:50:35Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
This page describes how to maintain a copy of Moodle on your production server which can easily be upgraded using Git. If you have customisations of Moodle core code, you are advised to follow the instructions in the [[:dev:Git for developers|Git for developers guide]].&lt;br /&gt;
&lt;br /&gt;
To get the most of of Git it is worth making the effort to understand its basic concepts - see the See also section below. It can be a bit of a learning curve, especially if you are used to CVS or Subversion. &lt;br /&gt;
&lt;br /&gt;
== Getting hold of Git (Windows, OSX, Linux and others) ==&lt;br /&gt;
&lt;br /&gt;
Support for Git was, up until recently, mostly confined to Linux but builds are now available for most popular operating systems:&lt;br /&gt;
&lt;br /&gt;
* List of downloads from Git site - http://git-scm.com/download&lt;br /&gt;
&lt;br /&gt;
Once you have downloaded and installed your OS relevant git installation, the git commands in this document should work with your operating system.&lt;br /&gt;
&lt;br /&gt;
== Obtaining the code from Git ==&lt;br /&gt;
&lt;br /&gt;
The command line version of Git is discussed here. Graphical clients are little more than wrappers around the command line version, so you should be able to deduce the correct parameters quite easily. &lt;br /&gt;
&lt;br /&gt;
You can find the official Moodle git repository at git://git.moodle.org/moodle.git (with an official clone at git://github.com/moodle/moodle.git). To initialize your local checkout, use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/webroot&lt;br /&gt;
$ git clone git://git.moodle.org/moodle.git                       (1)&lt;br /&gt;
$ cd moodle&lt;br /&gt;
$ git branch -a                                                   (2)&lt;br /&gt;
$ git branch --track MOODLE_28_STABLE origin/MOODLE_28_STABLE     (3)&lt;br /&gt;
$ git checkout MOODLE_28_STABLE                                   (4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* The command (1) initializes the new local repository as a clone of the &#039;upstream&#039; (i.e. the remote server based) moodle.git repository. The upstream repository is called &#039;origin&#039; by default. It creates a new directory named &#039;&#039;moodle&#039;&#039;, where it downloads all the files. This operation can take a while as it is actually getting the entire history of all Moodle versions&lt;br /&gt;
* The command (2) lists all available branches.&lt;br /&gt;
* Use the command (3) to create a new local branch called MOODLE_28_STABLE and set it to track the remote branch MOODLE_28_STABLE from the upstream repository.&lt;br /&gt;
* The command (4) actually switches to the newly created local branch. &lt;br /&gt;
&lt;br /&gt;
Note that Git has a huge number of options for each command and it&#039;s actually possible to do the above process with a single command (left as an exercise!!).&lt;br /&gt;
&lt;br /&gt;
==Git from behind a firewall==&lt;br /&gt;
&lt;br /&gt;
Git uses a read-only protocol that may be blocked by your firewall (port 9418). If this is a problem, you can use Github&#039;s http version &amp;lt;nowiki&amp;gt;https://github.com/moodle/moodle.git&amp;lt;/nowiki&amp;gt;. It&#039;s a bit slower, so use the Git protocol if you can.&lt;br /&gt;
&lt;br /&gt;
== Updating your installation ==&lt;br /&gt;
&lt;br /&gt;
The Moodle development team performs integration and testing of fixed bugs every Monday and Tuesday. On Wednesday you can install all patches by updating your code. Check the [http://git.moodle.org/gw?p=moodle.git;a=summary shortlog] to see if the official repository has been already updated or not.&lt;br /&gt;
&lt;br /&gt;
To update your code to the latest version (on the MOODLE_28_STABLE branch) &#039;&#039;&#039;all&#039;&#039;&#039; you have to do is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If this is a production site you should still consider the [[Upgrade]] instructions (e.g. take backups).&lt;br /&gt;
&lt;br /&gt;
== Installing a contributed extension from its Git repository ==&lt;br /&gt;
&lt;br /&gt;
This is one way to handle adding plugins from other Git repositories into your Moodle repository. Another way is to use Git Submodules. However, at the time of writing, this is one of Git&#039;s rougher features and should be regarded as an advanced option. &lt;br /&gt;
&lt;br /&gt;
For example, let us say we want to install the [[Certificate module]] from its Git repository into our Moodle 2.8.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ cd mod                                                          (1)&lt;br /&gt;
$ git clone https://github.com/markn86/moodle-mod_certificate.git certificate     (2)&lt;br /&gt;
$ cd certificate&lt;br /&gt;
$ git checkout -b MOODLE_28_STABLE origin/MOODLE_28_STABLE        (3)&lt;br /&gt;
$ git branch -d master                                            (4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The command (1) changes the current directory into the &#039;&#039;mod&#039;&#039; folder of your local Moodle clone. The command (2) creates a new subdirectory &#039;&#039;certificate&#039;&#039; and makes a local clone of vanilla Certificate repository. The command (3) creates a new local branch that will track the remote branch with a Certificate version for Moodle 2.8. The command (4) deletes the &#039;&#039;master&#039;&#039; that was created automatically by git-clone in (2) as we do not want it in this production checkout.&lt;br /&gt;
&lt;br /&gt;
Note: you should check first the compatibility of a module with your Moodle branch by asking directly to the Maintainer before cloning the repo or - if you want to guess it - by issuing the command below before running the command (3), in order to verify what is available among the branches:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git branch -a&lt;br /&gt;
* master&lt;br /&gt;
  remotes/origin/HEAD -&amp;gt; origin/master&lt;br /&gt;
  remotes/origin/MOODLE_20_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_21_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_22_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_23_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_24_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_25_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_26_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_27_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_28_STABLE&lt;br /&gt;
  remotes/origin/master&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will avoid an error message when you issue the command (3) against a nonexistent branch, e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
§ git checkout -b MOODLE_28_STABLE origin/MOODLE_28_STABLE&lt;br /&gt;
fatal: git checkout: updating paths is incompatible with switching branches.&lt;br /&gt;
Did you intend to checkout &#039;origin/MOODLE_28_STABLE&#039; which can not be resolved as commit?&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is wise to put the new directory mod/certificate/ to the list of ignored files of the main Moodle clone, otherwise a status of the main clone will keep reminding you that the new code has not been checked in.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ echo /mod/certificate/ &amp;gt;&amp;gt; .git/info/exclude&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To update your Moodle installation now, you must visit both Git repositories and pull changes from upstream.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ git pull&lt;br /&gt;
$ cd mod/certificate&lt;br /&gt;
$ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Writing a shell script with these lines in the root of Moodle installation is a very good idea. Otherwise it is easy to forget what Git repositories are there within the main Moodle repository.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
; Moodle Docs&lt;br /&gt;
* [[Git FAQ]]&lt;br /&gt;
* [[Windows installation using Git]]&lt;br /&gt;
* [[Git for Mac]]&lt;br /&gt;
* [[:dev:Moodle versions]]&lt;br /&gt;
* For some screenshots see [[User:Frank_Ralf/Git]] (still work in progress)&lt;br /&gt;
* For fixing a Tracker Issue (MDL) / Forking Moodle / CONTRIButing code https://docs.moodle.org/37/en/User:Sam_Hemelryk/My_Moodle_Git_workflow&lt;br /&gt;
* [[Moodle_Production_Server_with_GIT|Case study Git + Moodle from Technical University Berlin]]&lt;br /&gt;
&lt;br /&gt;
; Moodle forum discussions&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=255175 Github and Moodle deployment for production]&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=213695 Got GIT installed on my site- here&#039;s how!]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=168094 GIT help needed]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=165236 Best way to manage CONTRIB code with GIT]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167063 Handy Git tip for tracking 3rd-party modules and plugins]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167730 Moodle Git repositories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=183693 Git and CVS]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=208904 GIT for dummies]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=211930 Git and upgrading misunderstanding]&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=231046 Clear git guide for Admins (not developers)]&lt;br /&gt;
&lt;br /&gt;
; External resources &lt;br /&gt;
* [http://thamblings.blogspot.com.au/2013/07/upgrading-moodle-from-git.html Deploying Moodle from git - Blog post from a production experience]&lt;br /&gt;
* [http://www.kernel.org/pub/software/scm/git/docs/everyday.html Everyday GIT With 20 Commands Or So]&lt;br /&gt;
* [http://gitref.org/ Git Reference]&lt;br /&gt;
* [http://progit.org/book/ Pro Git book]&lt;br /&gt;
* [http://eigenjoy.com/2008/05/15/git-from-the-bottom-up/ Git from the bottom up]&lt;br /&gt;
&lt;br /&gt;
[[ja:管理者用Git]]&lt;br /&gt;
[[fr:Git_pour_administrateurs]]&lt;br /&gt;
[[es:Git para Administradores]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Git_for_Administrators&amp;diff=116363</id>
		<title>Git for Administrators</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Git_for_Administrators&amp;diff=116363"/>
		<updated>2014-12-05T01:48:15Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
This page describes how to maintain a copy of Moodle on your production server which can easily be upgraded using Git. If you have customisations of Moodle core code, you are advised to follow the instructions in the [[:dev:Git for developers|Git for developers guide]].&lt;br /&gt;
&lt;br /&gt;
To get the most of of Git it is worth making the effort to understand its basic concepts - see the See also section below. It can be a bit of a learning curve, especially if you are used to CVS or Subversion. &lt;br /&gt;
&lt;br /&gt;
== Getting hold of Git (Windows, OSX, Linux and others) ==&lt;br /&gt;
&lt;br /&gt;
Support for Git was, up until recently, mostly confined to Linux but builds are now available for most popular operating systems:&lt;br /&gt;
&lt;br /&gt;
* List of downloads from Git site - http://git-scm.com/download&lt;br /&gt;
&lt;br /&gt;
Once you have downloaded and installed your OS relevant git installation, the git commands in this document should work with your operating system.&lt;br /&gt;
&lt;br /&gt;
== Obtaining the code from Git ==&lt;br /&gt;
&lt;br /&gt;
The command line version of Git is discussed here. Graphical clients are little more than wrappers around the command line version, so you should be able to deduce the correct parameters quite easily. &lt;br /&gt;
&lt;br /&gt;
You can find the official Moodle git repository at git://git.moodle.org/moodle.git (with an official clone at git://github.com/moodle/moodle.git). To initialize your local checkout, use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/webroot&lt;br /&gt;
$ git clone git://git.moodle.org/moodle.git                       (1)&lt;br /&gt;
$ cd moodle&lt;br /&gt;
$ git branch -a                                                   (2)&lt;br /&gt;
$ git branch --track MOODLE_28_STABLE origin/MOODLE_28_STABLE     (3)&lt;br /&gt;
$ git checkout MOODLE_28_STABLE                                   (4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* The command (1) initializes the new local repository as a clone of the &#039;upstream&#039; (i.e. the remote server based) moodle.git repository. The upstream repository is called &#039;origin&#039; by default. It creates a new directory named &#039;&#039;moodle&#039;&#039;, where it downloads all the files. This operation can take a while as it is actually getting the entire history of all Moodle versions&lt;br /&gt;
* The command (2) lists all available branches.&lt;br /&gt;
* Use the command (3) to create a new local branch called MOODLE_28_STABLE and set it to track the remote branch MOODLE_28_STABLE from the upstream repository.&lt;br /&gt;
* The command (4) actually switches to the newly created local branch. &lt;br /&gt;
&lt;br /&gt;
Note that Git has a huge number of options for each command and it&#039;s actually possible to do the above process with a single command (left as an exercise!!).&lt;br /&gt;
&lt;br /&gt;
==Git from behind a firewall==&lt;br /&gt;
&lt;br /&gt;
Git uses a read-only protocol that may be blocked by your firewall (port 9418). If this is a problem, you can use Github&#039;s http version &amp;lt;nowiki&amp;gt;https://github.com/moodle/moodle.git&amp;lt;/nowiki&amp;gt;. It&#039;s a bit slower, so use the Git protocol if you can.&lt;br /&gt;
&lt;br /&gt;
== Updating your installation ==&lt;br /&gt;
&lt;br /&gt;
The Moodle development team performs integration and testing of fixed bugs every Monday and Tuesday. On Wednesday you can install all patches by updating your code. Check the [http://git.moodle.org/gw?p=moodle.git;a=summary shortlog] to see if the official repository has been already updated or not.&lt;br /&gt;
&lt;br /&gt;
To update your code to the latest version (on the MOODLE_28_STABLE branch) &#039;&#039;&#039;all&#039;&#039;&#039; you have to do is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If this is a production site you should still consider the [[Upgrade]] instructions (e.g. take backups).&lt;br /&gt;
&lt;br /&gt;
== Installing a contributed extension from its Git repository ==&lt;br /&gt;
&lt;br /&gt;
This is one way to handle adding plugins from other Git repositories into your Moodle repository. Another way is to use Git Submodules. However, at the time of writing, this is one of Git&#039;s rougher features and should be regarded as an advanced option. &lt;br /&gt;
&lt;br /&gt;
For example, let us say we want to install the [[Certificate module]] from its Git repository into our Moodle 2.8.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ cd mod                                                          (1)&lt;br /&gt;
$ git clone https://github.com/markn86/moodle-mod_certificate.git certificate     (2)&lt;br /&gt;
$ cd certificate&lt;br /&gt;
$ git checkout -b MOODLE_28_STABLE origin/MOODLE_28_STABLE        (3)&lt;br /&gt;
$ git branch -d master                                            (4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The command (1) changes the current directory into the &#039;&#039;mod&#039;&#039; folder of your local Moodle clone. The command (2) creates a new subdirectory &#039;&#039;certificate&#039;&#039; and makes a local clone of vanilla Certificate repository. The command (3) creates a new local branch that will track the remote branch with a Certificate version for Moodle 2.8. The command (4) deletes the &#039;&#039;master&#039;&#039; that was created automatically by git-clone in (2) as we do not want it in this production checkout.&lt;br /&gt;
&lt;br /&gt;
Note: you should check first the compatibility of a module with your Moodle branch by asking directly to the Maintainer before cloning the repo or - if you want to guess it - by issuing the command below before running the command (3), in order to verify what is available among the branches:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git branch -a&lt;br /&gt;
* master&lt;br /&gt;
  remotes/origin/HEAD -&amp;gt; origin/master&lt;br /&gt;
  remotes/origin/MOODLE_20_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_21_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_22_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_23_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_24_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_25_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_26_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_27_STABLE&lt;br /&gt;
  remotes/origin/MOODLE_28_STABLE&lt;br /&gt;
  remotes/origin/master&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will avoid an error message when you issue the command (3) against a nonexistent branch, e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
§ git checkout -b MOODLE_28_STABLE origin/MOODLE_28_STABLE&lt;br /&gt;
fatal: git checkout: updating paths is incompatible with switching branches.&lt;br /&gt;
Did you intend to checkout &#039;origin/MOODLE_28_STABLE&#039; which can not be resolved as commit?&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is wise to put the new directory mod/certificate/ to the list of ignored files of the main Moodle clone, otherwise a status of the main clone will keep reminding you that the new code has not been checked in.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ echo /mod/certificate/ &amp;gt;&amp;gt; .git/info/exclude&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To update your Moodle installation now, you must visit both Git repositories and pull changes from upstream.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd /path/to/your/moodle/&lt;br /&gt;
$ git pull&lt;br /&gt;
$ cd mod/certificate&lt;br /&gt;
$ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Writing a shell script with these lines in the root of Moodle installation is a very good idea. Otherwise it is easy to forget what Git repositories are there within the main Moodle repository.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
; Moodle Docs&lt;br /&gt;
* [[Git FAQ]]&lt;br /&gt;
* [[Windows installation using Git]]&lt;br /&gt;
* [[Git for Mac]]&lt;br /&gt;
* [[:dev:Moodle versions]]&lt;br /&gt;
* For some screenshots see [[User:Frank_Ralf/Git]] (still work in progress)&lt;br /&gt;
* For fixing a Tracker Issue (MDL) / Forking Moodle / CONTRIButing code [https://docs.moodle.org/37/en/User:Sam_Hemelryk/My_Moodle_Git_workflow]&lt;br /&gt;
* [[Moodle_Production_Server_with_GIT|Case study Git + Moodle from Technical University Berlin]]&lt;br /&gt;
&lt;br /&gt;
; Moodle forum discussions&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=255175 Github and Moodle deployment for production]&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=213695 Got GIT installed on my site- here&#039;s how!]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=168094 GIT help needed]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=165236 Best way to manage CONTRIB code with GIT]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167063 Handy Git tip for tracking 3rd-party modules and plugins]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167730 Moodle Git repositories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=183693 Git and CVS]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=208904 GIT for dummies]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=211930 Git and upgrading misunderstanding]&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=231046 Clear git guide for Admins (not developers)]&lt;br /&gt;
&lt;br /&gt;
; External resources &lt;br /&gt;
* [http://thamblings.blogspot.com.au/2013/07/upgrading-moodle-from-git.html Deploying Moodle from git - Blog post from a production experience]&lt;br /&gt;
* [http://www.kernel.org/pub/software/scm/git/docs/everyday.html Everyday GIT With 20 Commands Or So]&lt;br /&gt;
* [http://gitref.org/ Git Reference]&lt;br /&gt;
* [http://progit.org/book/ Pro Git book]&lt;br /&gt;
* [http://eigenjoy.com/2008/05/15/git-from-the-bottom-up/ Git from the bottom up]&lt;br /&gt;
&lt;br /&gt;
[[ja:管理者用Git]]&lt;br /&gt;
[[fr:Git_pour_administrateurs]]&lt;br /&gt;
[[es:Git para Administradores]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116356</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116356"/>
		<updated>2014-12-05T01:25:11Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* How do I create a custom theme? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116353</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116353"/>
		<updated>2014-12-05T01:19:38Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* Miscellaneous */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively,see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116352</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116352"/>
		<updated>2014-12-05T01:19:01Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* Miscellaneous */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively,see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [:dev:Fixed-width theme|Creating a fixed-width theme]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116351</id>
		<title>Themes FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Themes_FAQ&amp;diff=116351"/>
		<updated>2014-12-05T01:14:40Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Themes}}&lt;br /&gt;
==Where can I find more Moodle themes?==&lt;br /&gt;
&lt;br /&gt;
As well as standard themes, which you will find in your Moodle installation, there are many FREE themes available for download from [https://moodle.org/plugins/browse.php?list=category&amp;amp;id=3 Moodle plugins directory - Category:Themes]. Don&#039;t forget to choose the correct version of a theme for the version of Moodle you are currently using.&lt;br /&gt;
&lt;br /&gt;
==How do I install a new theme?==&lt;br /&gt;
&lt;br /&gt;
# Unzip the .zip file to an empty local directory.&lt;br /&gt;
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the webserver.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== How do I install a new theme when using cPanel? ===&lt;br /&gt;
&lt;br /&gt;
# Upload your new theme .zip file to your web server via cPanel. &lt;br /&gt;
# Then using cPanel install the new theme to your Moodle theme&#039;s folder.  The new theme will be installed into its own folder at /moodle/theme/[mytheme] (where [mytheme] is the name of your new theme.&lt;br /&gt;
# Ensure the new theme folder and its contents are readable by the webserver. If necessary  change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.&lt;br /&gt;
# Choose your new theme from within Moodle via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Themes &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Why is the new theme I uploaded not showing up in Theme Selector? ===&lt;br /&gt;
&lt;br /&gt;
You probably forgot to do something correctly. Here are steps to create a &amp;quot;new&amp;quot; theme from an existing theme called &amp;quot;standard&amp;quot;. Bold show places you must change for the theme to appear.&lt;br /&gt;
#Copy folder theme/standard and call it theme/new&lt;br /&gt;
#In theme/new/lang/en folder,&lt;br /&gt;
##&#039;&#039;&#039;Renamed theme_standard.php to theme_new.php&#039;&#039;&#039;&lt;br /&gt;
#Opened theme/new/lang/en/theme_new.php,  recommend you change 2 lines to read something like:&lt;br /&gt;
##$string[&#039;pluginname&#039;] = &#039;New theme - Martin D&#039;; &lt;br /&gt;
##$string[&#039;choosereadme&#039;] = &#039;New theme came from the Standard theme and is being changed by Martin D in 2011&#039;;&lt;br /&gt;
##Saved the file&lt;br /&gt;
#In theme/new/config.php&lt;br /&gt;
##Change &#039;&#039;&#039;$THEME-&amp;gt;NAME  = &#039;new&#039;&#039;&#039;&#039;;&lt;br /&gt;
#Went to &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme settings&#039;&#039; &amp;gt; Theme designer mode (Checked)&lt;br /&gt;
#&#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Appearance &amp;gt; Theme selector&#039;&#039;&lt;br /&gt;
##Clear theme caches&lt;br /&gt;
##Select theme&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There could be a number of problems with the theme you uploaded, but one major problem reported in the Themes Forum all point to the way in which the theme is uploaded on certain servers. Using the cPanel method, as described in  the FAQ [[Themes_FAQ#How do I install a new theme when using cPanel?|How do I install a new theme when using cPanel?]] will, in most cases, cure the problem.&lt;br /&gt;
&lt;br /&gt;
== How do I control what themes show up where? ==&lt;br /&gt;
&lt;br /&gt;
You can control which themes show up in which contexts by a series of settings in &#039;&#039;Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===How can I restrict the available themes to users and in courses?===&lt;br /&gt;
&lt;br /&gt;
In&#039;&#039; Administration&amp;gt;Site Administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings&#039;&#039;, add the themes you want them to use in the Theme list. These will then restrict the theme choice lists in pull down menus the contexts (Course, Category, User) where you allow them.&lt;br /&gt;
&lt;br /&gt;
===What is the hierarchy of contexts for themes to override each other?===&lt;br /&gt;
&lt;br /&gt;
There are five contexts in which themes appear and can be set: courses, category, session, user, and site (or Default, i.e. the site wide default theme). That is the level of priority of appearance they have as well. &lt;br /&gt;
&lt;br /&gt;
* You enable/disable these in [https://docs.moodle.org/en/Theme_settings Theme settings.] &lt;br /&gt;
* It is possible to change this hierarchy in the config.php file - see [https://docs.moodle.org/en/Theme_settings#Change_default_hierarchy change default hierarchy] for how.&lt;br /&gt;
&lt;br /&gt;
====Hierarchy of themes====&lt;br /&gt;
&lt;br /&gt;
* Course overrides Category (and below) &lt;br /&gt;
* Category overrides Session (and below) &lt;br /&gt;
* Session overrides User (and below)&lt;br /&gt;
* User overrides Default&lt;br /&gt;
* Default (site)&lt;br /&gt;
&lt;br /&gt;
====Note on Session Themes====&lt;br /&gt;
&lt;br /&gt;
* It is important to note that Session level themes (those set with the URL parameter theme=theme_name), override the Site level theme ONLY for the user&#039;s current logged in session. When the user logs out, they will then see the Default site theme, not the Session theme. &lt;br /&gt;
* You only have to set the theme once via the URL parameter and it will persist until the user logs out.&lt;br /&gt;
&lt;br /&gt;
==How do I create a custom theme?==&lt;br /&gt;
&lt;br /&gt;
If you aren&#039;t familiar with CSS and theming, first try customising the &#039;More&#039; theme within Moodle. See [[Standard themes]]&lt;br /&gt;
&lt;br /&gt;
Alternatively,see the developer documentation [[:dev:Theme development|Theme development]].&lt;br /&gt;
&lt;br /&gt;
==Can I assign a specific theme to a course?==&lt;br /&gt;
&lt;br /&gt;
Yes. In the course settings, use the &amp;quot;Force theme&amp;quot; dropdown box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is it possible to customise language strings per theme?==&lt;br /&gt;
Not by default, as when strings are customised, they are customised for the whole site. However, it is possible to make a new language  pack based on your main language and apply that pack to the course which has that theme. See this forum post for more information: https://moodle.org/mod/forum/discuss.php?d=220671&lt;br /&gt;
&lt;br /&gt;
==How can I get the links in  my custom menu to open in new windows?==&lt;br /&gt;
It is possible to create your own fly out menu via the custom menu block in Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Themes&amp;gt;Theme settings. Copy the examples given below the box. If you want the links to open in a new window, use the following code:&lt;br /&gt;
 Moodle|http://www.moodle.org&amp;quot; target=&amp;quot;_blank&lt;br /&gt;
&lt;br /&gt;
See also https://tracker.moodle.org/browse/MDL-35420&lt;br /&gt;
&lt;br /&gt;
== Where shall I put my custom CSS code? ==&lt;br /&gt;
&lt;br /&gt;
Note that the contributed themes Afterburner, Arialist, Formal White, Fusion, Nonzero, Overlay, Sky High and Splash all offer the possibility to add custom CSS in their page settings via &#039;&#039;Settings&amp;gt;Appearance&amp;gt;Themes&amp;gt;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Failing this, instead of modifying the theme&#039;s CSS files you better put your own code in a separate CSS file and make your theme aware of that file by modifying its config.php file (be sure add your own CSS file as the last one in the list so that you will override all prior settings). See this posting for [http://moodle.org/mod/forum/discuss.php?d=128599#p564055 detailed instructions]. &lt;br /&gt;
&lt;br /&gt;
See also the instructions on creating your own theme mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Will I lose my courses, language files, logo, etc. if I switch my theme?==&lt;br /&gt;
Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.    &lt;br /&gt;
&lt;br /&gt;
Follow these instructions to [[:dev:Creating_a_custom_theme#Adding_a_Logo|add a logo]] to a theme.&lt;br /&gt;
:If you upgrade your Moodle site and tweaked an existing standard theme, you will lose your changes. Thus it is a good idea to create a custom theme which will not be changed when you upgrade.&lt;br /&gt;
&lt;br /&gt;
==I can&#039;t access theme files on the server. Can I still add a logo to a theme?==&lt;br /&gt;
Yes. You have three choices:&lt;br /&gt;
**Use the Clean theme (new in 2.5) or the Afterburner theme, both of  which have the File picker available for you to upload your logo.&lt;br /&gt;
**Either upload your logo to another place publicly available online and then copy the image&#039;s URL to paste into the logo field of the theme page you are editing (such as Afterburner)&lt;br /&gt;
**Or add the main menu block to your front page; upload the logo via Main menu&amp;gt;Add a resource. Get its URL and paste it into the logo field of the theme page you are editing. You can safely then hide or delete the main menu block; the logo will still be there. &#039;&#039;NOTE&#039;&#039; - your logo will appear in &#039;&#039;Navigation&amp;gt;Site pages&#039;&#039; as well. To prevent this, go to &#039;&#039;Administration&amp;gt;Site administration&amp;gt;Appearance&amp;gt;Navigation&#039;&#039; and untick the box &amp;quot;Show front page activities in the navigation&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==How can I add custom fonts to a theme?==&lt;br /&gt;
&lt;br /&gt;
See [[How to add custom fonts in a theme]]&lt;br /&gt;
&lt;br /&gt;
== Are there tools which help me creating and editing themes? ==&lt;br /&gt;
&lt;br /&gt;
=== Clear Cache Button ===&lt;br /&gt;
This useful Firefox add-on let&#039;s you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;Please note that the following tools are only for development. They only change the way &#039;&#039;you&#039;&#039; see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme&#039;s CSS files for example.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Firebug ===&lt;br /&gt;
The single most useful tool is the [[:dev:Firebug|Firebug]] add-on for the [[:dev:Firefox|Firefox]] web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.&lt;br /&gt;
&lt;br /&gt;
==== Firebug enhancements ====&lt;br /&gt;
You can enhance Firebug even further. See [[:dev:Firebug|Firebug]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Web Developer Toolbar ===&lt;br /&gt;
Another great tool for any web developer is the [[:dev:Web developer extension|Web developer extension]], another Firefox add-on. One very useful feature is the option to &#039;&#039;&#039;disable your browser&#039;s cache&#039;&#039;&#039; while working on your theme. That way you are sure you&#039;re always presented with your latest modifications and not with an older, cached version.&lt;br /&gt;
&lt;br /&gt;
Now also available for Google&#039;s Chrome browser: [http://www.sitepoint.com/blogs/2010/03/23/chrome-web-developer-toolbar/ &amp;quot;The Web Developer Toolbar Comes to Chrome&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
=== Stylish ===&lt;br /&gt;
Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: [https://addons.mozilla.org/en-US/firefox/addon/2108 Stylish]. That way you can change your site&#039;s CSS with a simple mouse click without having to change Moodle code.&lt;br /&gt;
&lt;br /&gt;
See [[:dev:Stylish|Stylish]] for detailed instructions and examples.&lt;br /&gt;
&lt;br /&gt;
==== Stylish-Custom ====&lt;br /&gt;
This is an [https://addons.mozilla.org/en-US/firefox/addon/12105/ custom additions] to the Stylish extension which brings back features from 0.5.9 and adds new features.&lt;br /&gt;
&lt;br /&gt;
== How do I check for cross-browser compatibility? ==&lt;br /&gt;
There are some tools (standalone and online) which can show you how your site looks in different browsers. See this [http://moodle.org/mod/forum/discuss.php?d=127746 forum discussion] for details.  See the new device detection settings in [[Theme settings]] which will allow you to create a theme for those &amp;quot;special&amp;quot; browsers.&lt;br /&gt;
&lt;br /&gt;
==How are the device types used in Moodle?==&lt;br /&gt;
If &amp;quot;Enabled device detection&amp;quot; has been turned on, Moodle will automatically use the theme which has been set for the device in the [[Standard themes|Theme selector]] settings page.   It is also possible to add additional types to the Theme selector page by using the &amp;quot;device detection regular expressions&amp;quot; fields.   &lt;br /&gt;
&lt;br /&gt;
Site administrators can find these enable device detection settings in Site administration &amp;gt; Appearance &amp;gt;Themes &amp;gt; [[Theme settings]] .&lt;br /&gt;
&lt;br /&gt;
== Concrete examples for modifying Moodle themes ==&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
The following examples were taken from the former &#039;&#039;Theme Scrapbook&#039;&#039;:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;quot;The Moodle &#039;&#039;&#039;Theme Scrapbook&#039;&#039;&#039; is a collection of small how-to descriptions. You theme designers and Moodle users working with themes add your knowledge here to help new Moodle users with tips and tricks for their theme work. &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Feel free to add to this list! Don&#039;t know how? Read our [[MoodleDocs:Guidelines_for_contributors|Guidelines for contributors]].&amp;quot;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Changing things ===&lt;br /&gt;
&lt;br /&gt;
==== Colors ====&lt;br /&gt;
* [[:dev:Forcing the colour of the chat discussion pane (pop-up mode)]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=142765 Changing background colour of a topic box]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=152357 How to change the colour of the popup event&#039;s header and background]&lt;br /&gt;
&lt;br /&gt;
==== Logo and icons ====&lt;br /&gt;
* [[:dev:Alternate Icon Set|Using an alternate icon set in Moodle]]&lt;br /&gt;
* [[Favicon|Change the favicon that shows in front of the web address]]&lt;br /&gt;
* [[Footer replacement|Replace the logo in the footer with your web address and/or or own logo]]&lt;br /&gt;
*[[:dev:Header logo|Replace the logo in the header]]&lt;br /&gt;
&lt;br /&gt;
==== Layout ====&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=136546 Overriding the $menu / $button variables] using PHP regular expressions in header.html&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=143411 Changing the view of course categories] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145077 Sub categories and courses layout] - work in progress&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=151370 Tracker &#039;components&#039; list too small]&lt;br /&gt;
&lt;br /&gt;
=== Adding things ===&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=157935 How to add a different img-bullet to each category?]&lt;br /&gt;
&lt;br /&gt;
=== Hiding things ===&lt;br /&gt;
* Hiding an element with CSS is generally achieved using the [http://reference.sitepoint.com/css/display display: none;] property on the element.&lt;br /&gt;
* See [[:dev:Print style]] and [[:dev:Stylish#Print style for Database records]] for an example how to hide parts of a page not meant for printing.&lt;br /&gt;
&lt;br /&gt;
=== Moving things ===&lt;br /&gt;
* [[:dev:Center Forum Posts|Centre smaller forum posts on the page]]&lt;br /&gt;
* [[:dev:Footer positioning|Positioning the page footer]]&lt;br /&gt;
* [[:dev:Left-align quiz|Left align quiz questions and answers]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=121847 Indentation for nested categories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=128599 Positioning login and choose language field]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=145179 Match question type - position answers nearer to the questions]&lt;br /&gt;
* [[:dev:Stylish#Fixed admin menue with CSS]]&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
* [[:dev:Fixed-width theme|Creating a fixed-width theme]]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=146763 Is there a way to fix oversized HTML Editor using CSS?]&lt;br /&gt;
* [[:dev:Category Design|Modifying the design of specific categories with CSS]]&lt;br /&gt;
&lt;br /&gt;
==How can I see theme changes when using the Windows Complete Installer package==&lt;br /&gt;
In the [http://download.moodle.org/windows/ Windows Complete Installer package], the eAccelerator in the XAMPP install can cause some issues with changes to your theme&#039;s CSS and HTML files from showing.&lt;br /&gt;
&lt;br /&gt;
Open the php.ini file inside of the server\php folder from your install in notepad and search for &amp;quot;eAccelerator&amp;quot; you should see a line that reads: &lt;br /&gt;
 extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Insert a semi-colon (turns the line into a comment) at the start of this line so it now reads: &lt;br /&gt;
 ;extension=eaccelerator.dll&lt;br /&gt;
&lt;br /&gt;
Restart the Moodle server using the &amp;quot;stop moodle&amp;quot; and then the &amp;quot;start moodle&amp;quot; programs in your server folder. You should now find that all of your changes to your CSS are reflected as soon as you save the file and refresh your browser cache (usually you can refresh your cache by pressing F5). This FAQ from a discussion at [http://moodle.org/mod/forum/discuss.php?d=151562#p663950 Deactivating caching with XAMPP installations]&lt;br /&gt;
&lt;br /&gt;
==How can I have a custom menu for different roles, eg student or teacher?==&lt;br /&gt;
While it is not possible to show a different menu to different roles (because they tend to be assigned course-wide not site-wide), it is possible to have a different menu for different users. See this [https://moodle.org/mod/forum/discuss.php?d=149803#p1131386 forum post on custom menus]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=29 Themes forum]&lt;br /&gt;
* [[:dev:CSS FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=149534 Testing 2.0. Use for modern vs old browsers] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[de:Designs_FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/37/en/index.php?title=Label_FAQ&amp;diff=116279</id>
		<title>Label FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/37/en/index.php?title=Label_FAQ&amp;diff=116279"/>
		<updated>2014-12-04T20:33:25Z</updated>

		<summary type="html">&lt;p&gt;Cstoneburner: /* I am no longer able to edit a label. What can I do? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Label}}&lt;br /&gt;
==I am no longer able to edit a label. What can I do?==&lt;br /&gt;
&lt;br /&gt;
If you add something to a label that Moodle doesn&#039;t like or recognise, it can sometimes disfigure your page such that you lose the label editing icon. To  remove the offending item without having access to the editing icon:&lt;br /&gt;
 &lt;br /&gt;
# Log in to your Moodle&lt;br /&gt;
# Right click on your page to see the source code.&lt;br /&gt;
# Find where your label&#039;s code is(if it has text, look for the text) &lt;br /&gt;
# You should have something like &#039;&#039;class=&amp;quot;activity label&amp;quot; id=&amp;quot;module-310&#039;&#039;. The number will be the number of the label you want to edit - so remember its number and then:&lt;br /&gt;
# Open a new tab or new window in your browser and type this in &#039;&#039;http://[yourmoodle]/course/modedit.php?update=310&amp;amp;return=0&#039;&#039; where the number is the number of the label you want to edit. It should take you straight to editor to edit the label.&lt;br /&gt;
# Delete the contents, save and start again&lt;br /&gt;
&lt;br /&gt;
See also [http://www.youtube.com/watch?v=DXIhDt5rCmc How to edit a label with no edit icon video] &lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:Etiqueta FAQ]]&lt;/div&gt;</summary>
		<author><name>Cstoneburner</name></author>
	</entry>
</feed>