Title: style-switcher on localhost
Last modified: August 18, 2016

---

# style-switcher on localhost

 *  [tjrac](https://wordpress.org/support/users/tjrac/)
 * (@tjrac)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/)
 * Hey folks,
    I discovered wp yesterday and I’m giving it a spin on my local machine(
   win2k/apache). I went to Alex King’s site and got some stuff. When I tried out
   the style-switcher plug-in I could not get the styles to switch. I emailed him
   and if I understood him correctly the setcookie function probably needs to be
   modified since the domain is not recognized. I’m reading up on it but I’m not
   a programmer. If anyone knows the solution I’m all ears. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-75992)
 * Have you checked your file paths ?
    Do you get one page with a style and then
   the other without ?
 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-75993)
 * [http://www.kennethteo.com/2004/07/20/solution-to-wp-style-switcher-plugin-for-indexphp-outside-wordpress-installation/](http://www.kennethteo.com/2004/07/20/solution-to-wp-style-switcher-plugin-for-indexphp-outside-wordpress-installation/)
   
   might help, too.
 *  [masquerade](https://wordpress.org/support/users/masquerade/)
 * (@masquerade)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-76012)
 * also, instead of localhost, try 127.0.0.1
 *  Anonymous
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-76020)
 * To Podz:
    Whatever style I choose to put into wp_style_switcher.php as the default…`
   $wp_style_default = 'stylesheet_ folder_ name';` I am able to see. I just cannot
   change them through the sidebar plug-in. As I mentioned Alex seems to think that
   it is a cookie issue. To 2fargon: I tried the changes and it gave me errors. 
   I could have input something incorrectly …
 *  Thread Starter [tjrac](https://wordpress.org/support/users/tjrac/)
 * (@tjrac)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-76026)
 * I did try 127.0.0.1 when pointing to the page. I’ve not run into this issue when
   playing around with other php/mysql packages so I’m a bit confused. I would think
   that most folks try things out on their local machines before using them on another
   server. I’ve been reading some comments under the setcookie listing on PHP.net.
   One fellow suggests that since the domain field has to have at least one dot (.)
   in it one solution is to change the “Primary DNS Suffix of This Computer” setting.
   Any thoughts?
 *  [bakajanai](https://wordpress.org/support/users/bakajanai/)
 * (@bakajanai)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-76623)
 * since you are just switching between using different css files.. if i wanted 
   to, i would be able to change the background n stuff right?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-76624)
 * You can change anything, yes, anything and everything.
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-76625)
 * I’ve never been able to get this to work on localhost or 127. Not sure why but
   the cookie jsut would not set no matter what did. Once I uploaded it to the live
   site, it was OK though.
    TG

Viewing 8 replies - 1 through 8 (of 8 total)

 The topic ‘style-switcher on localhost’ is closed to new replies.

 * 8 replies
 * 7 participants
 * Last reply from: [TechGnome](https://wordpress.org/support/users/techgnome/)
 * Last activity: [22 years, 2 months ago](https://wordpress.org/support/topic/style-switcher-on-localhost/#post-76625)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
