Allow theme change by URL: Difference between revisions
Mary Evans 2 (talk | contribs) |
Jon Bolton (talk | contribs) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
== Site Administration > Appearance > Themes > Theme settings == | == Site Administration > Appearance > Themes > Theme settings == | ||
Enabling this setting | Enabling this setting allows you to temporarily change the theme by adding either '''?theme=''' or '''&theme=''' (followed by the theme name you wish to change to) depending on where you are at the time you want to swap to another theme. | ||
'''For Example:''' | '''For Example:''' | ||
If you are at the front page of your site that add '''?theme=''' | |||
will change from your present theme to the Essential theme layout. | <pre>http://localhost/moodle30/?theme=essential</pre> | ||
after clicking the Enter tab on your keyboard. this will change from your present theme to the Essential theme layout, providing or course that you have that theme installed in your Moodle site. | |||
Alternatively if you are in a course page then add | Alternatively if you are in a course page then add '''&theme=''' | ||
:: | <pre>http://localhost/moodle30/course/view.php?id=3&theme=essential</pre> | ||
will change theme to Essential after clicking the Enter tab on your keyboard. | |||
Changing the theme like this only affects you, and only affects your current session. When you log out, it will revert to the default theme. | |||
[[es:Permitir cambio de tema por URL]] | |||
[[fr:Autoriser le changement de thème par URL]] |
Latest revision as of 06:13, 23 May 2020
Site Administration > Appearance > Themes > Theme settings
Enabling this setting allows you to temporarily change the theme by adding either ?theme= or &theme= (followed by the theme name you wish to change to) depending on where you are at the time you want to swap to another theme.
For Example: If you are at the front page of your site that add ?theme=
http://localhost/moodle30/?theme=essential
after clicking the Enter tab on your keyboard. this will change from your present theme to the Essential theme layout, providing or course that you have that theme installed in your Moodle site.
Alternatively if you are in a course page then add &theme=
http://localhost/moodle30/course/view.php?id=3&theme=essential
will change theme to Essential after clicking the Enter tab on your keyboard.
Changing the theme like this only affects you, and only affects your current session. When you log out, it will revert to the default theme.