Using query_vars to detect windows
-
I’ve got an odd case where all browsers on Windows machines render a site one way, and all mac browsers render the site differently.
I want to use this plugin, and query_vars, to load an extra stylesheet if the platform is Windows. Can someone tell me how this should be phrased? I’ve tried the following, but it does not work. My code editor says there is an error in the 4th line.
<?php if(get_query_var('platform')){ $platform = get_query_var('platform'); if $platform = 'windows' { ?> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_directory' ); ?>/pc.css" /> <?php } } ?>
https://www.ads-software.com/extend/plugins/mobile-client-detection-plugin/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using query_vars to detect windows’ is closed to new replies.