308 posts
  • Has referred 1+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
brainbuzzmedia says

Holy crap themeblvd, thank you so much. That worked. The frustrating this is that I understood everything you were doing because I tried several other php methods and knew how they were supposed to work, yet still couldn’t get them going for some reason. Very generous of you.

1028 posts
  • Has referred 500+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
ThemeBlvd says

Holy crap themeblvd, thank you so much. That worked. The frustrating this is that I understood everything you were doing because I tried several other php methods and knew how they were supposed to work, yet still couldn’t get them going for some reason. Very generous of you.

No problem. I’m glad it helped.

251 posts themesdepot.org
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a Most Wanted contest
  • Has referred 10+ members
+6 more
ThemesDepot says

.....

Thank you for your code, i was looking for something like this, i was testing it on one of my themes (localhost)

it works but once i click the link i get this message

Warning: Cannot modify header information – headers already sent by (output started at /path/to/my/theme/template-home-default.php:7) in /path/to/my/theme/header.php on line 24

on line 7 i’ve got

get_header();

and on line 24

setcookie(‘theme-demo-style’, $demo_style);

what’s wrong ?

577 posts Themes and Graphics
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $250,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 more
Bebel says

Blank space before ”<?” ?

251 posts themesdepot.org
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a Most Wanted contest
  • Has referred 10+ members
+6 more
ThemesDepot says

Lol yeah now it works :D today i’m a bit sleepy >_>

1 post
  • Has been part of the Envato Community for over 2 years
busker says

Could anyone give me a quick hand with this please? Or am I a year too late?! Thanks

438 posts
  • Has been part of the Envato Community for over 2 years
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Europe
+1 more
Pixelous says

i use my own code. with form, selects and plain and simple php post and cookies. why not try simple?

One year past, but I am new at TF, so, duotive, could you please share with your code or maybe I could buy it or maybe it will be cool if you upload it to Code Canyon and another developers could buy it?

by
by
by
by
by
by