ben-g
3/7/2016 - 6:43 PM

ACF checkbox for alternate stylesheet

ACF checkbox for alternate stylesheet

<!--ACF checkbox for alternate stylesheet.  Load into head of parallax-single.php  -->
    <?php 

        $selected = get_field('stylesheet2');

        if( in_array('add', $selected) ) {
	
	   echo '<link rel="stylesheet" id="gravity_parallax_style-css" href="http://grace.loc/wp-content/plugins/parallax_gravity/css/sk_gravity2.css" type="text/css" media="all">';
        }

    ?>
    <!-- End of ACF checkbox -->