Skip to content

Instantly share code, notes, and snippets.

@avdoshenkov
Created August 11, 2017 06:06
Adding new stylesheet (e.g. redesign) through http://example.com/?x
<?php if (isset($_GET['x'])) {
echo '<link href="path/to/style_new.css" rel="stylesheet">';
} else {
echo '<link href="path/to/style.css" rel="stylesheet">';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment