WordPress.org

Ready to get started?Download WordPress

Forums

Turning stylesheets on and off (4 posts)

  1. KarlB
    Member
    Posted 9 years ago #

    Hi there,
    I have been looking (with no success) for a code snippet that will allow me to have 2 links (view text version and view design version) so I can toggle between having my stylesheet turned on or off. So if the stylesheet is off I should be able to turn it back on again.
    I have seen the styleswitchers that obviously switch between sheets but no one to turn on or off.
    Any ideas?
    Thanks
    Karl

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I would create a very basic stylesheet that will do for an 'off' setting.
    WP - CSS = ugly :)

  3. Root
    Member
    Posted 9 years ago #

    Well in the style load a blank page.

  4. skebrown
    Member
    Posted 9 years ago #

    Alex King has a nice plugin that you can use in this fasion.
    "WP Style Switcher"
    http://www.alexking.org/index.php?content=software/wordpress/content.php
    With this plugin, you could create the two styles that you want. Just experiment with it and you should be good to go.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.