Ah, I see - the rewrite rule in the htaccess file would have been stripping the query string from the end of the switch, which wouldn't activate the cookie;
Code:
<?php if ($layout == 'fixed') {
echo '<p class="switch"><a href="?layout=rwd">Switch to Fluid Mobile Layout</a></p>'; // switch to default/rwd layout
} else {
echo '<p class="switch"><a href="?layout=fixed">Switch to Fixed Desktop Layout</a></p>'; // switch to optout/fixed layout
}
?>
I'll add a note to the blog page as a tip for anyone else in the same boat. Thanks for your help on this
Bookmarks