Let the visitor choose the color of the website

  • Anonymous

    #7915

    Hello every body,

    Firstly, i apologize in advance for my bad level in english…

    I have a website with WordPress and Graphene.

    I wish to offer a website with different colors. That’s why I created different themes-child with each color.

    Now I have my different themes but the choice must be made in the administration area

    I want to let the opportunity for visitors to choose via a menu on a page (plugin, widget or other function …) what color they want to see the site. This choice will be stored in the database to re-display the site in the chosen color with each new visit.

    But I do not know how to load a specific sheet in the head

    Thanks for your help !

    Admin

    Syahir Hakim

    #39807

    This plugin is old but it may still work: http://wordpress.org/plugins/wp-chooseyourtheme/

    Mod

    Kenneth John Odle

    #39808

    I just downloaded that plugin to experiment with in local host. Two things:

    First, you will need to use a PHP widget so that you can make these options available to your readers without hacking into theme files.

    Second, there is a mistake in the instructions on plugin’s repository page. It says that you should insert <?php wp-chooseyourtheme(); ?> to make this work, but that should be <?php wp_chooseyourtheme(); ?> (underscore instead of a hyphen).

    Other than that, it works great.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.