286 posts
  • Bought between 1 and 9 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Turkey
AkinGn says

Now I got it. Thanks for sharing and advices Bebel :)

45 posts
  • Grew a moustache for the Envato Movember competition
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
  • United States
premiumwd says

Hi,

Place <?php session_start() ?> at the top of functions.php file then in your header.php use the code below

<?php

$_SESSION['color'] = 'blue';
if(isset($_GET['color']))
    $_SESSION['color'] = $_GET['color'];

?>

<link href="<?php bloginfo('template_directory'); ?>/css/<?php echo $_SESSION['color']; ?>.css" rel="stylesheet" type="text/css" media="all" />

Hi I know this is an old post, but I would like to know how you outputed this session for the colors?

by
by
by
by
by
by