295 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
+3 more
AkinGn
says

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

45 posts
  • Collector Level 2
  • Mo Bro
  • 3 Years of Membership
  • 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