Hi there!

Maybe someone could tell me is it posible in Drupal 7 to change theme with a sigle link (URL sould show into which theme site appearence should be changed)?

At the worst scenario, is it possible to switch between two active themes using only links?

I will really appriciate any help. :)

Comments

shadcn’s picture

nateman332’s picture

In the README.txt it says:

* When Switchtheme module is enabled, users are able to switch to a different
theme any time they follow a link that includes a query string like in this
URL: http://www.example.com/foo/bar?theme=exampletheme

That means, you can implement specially crafted links into your site or themes
which allow users to switch to pre-defined themes. For example, using
Drupal's l() function in page.tpl.php (without code tags):

print l('Red theme', $_GET['q'], array(), 'theme=red');

Note: the links don't seem to work past the page they are on in Firefox and IE.

itapplication’s picture

Here you will get demo of themekey module http://drupal7.itweb.in/

Drupal developer

Drupal Theme developer.

Shivcharan