Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Allow theme change by URL.

Allow theme change by URL: Difference between revisions

From MoodleDocs
m (Added link to spanish translation of page)
m (changed moodle 28 to moodle 30)
Line 6: Line 6:
'''For Example:'''
'''For Example:'''
If you are at the front page of your site that add '''?theme='''
If you are at the front page of your site that add '''?theme='''
<pre>http://localhost/moodle28/?theme=essential</pre>
<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.
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='''
Alternatively if you are in a course page then add '''&theme='''
<pre>http://localhost/moodle28/course/view.php?id=3&theme=essential</pre>
<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.
will change theme to Essential after clicking the Enter tab on your keyboard.


[[es:Permitir cambio de tema por URL]]
[[es:Permitir cambio de tema por URL]]

Revision as of 18:13, 24 March 2016

Site Administration > Appearance > Themes > Theme settings

Enabling this setting in Moodle 2.0+ themes allows you to change 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.