• Resolved rcstudio

    (@rcstudio)


    I’m using this code to change the stylesheets on templates, but its not working.

    <?php if(is_page_template('resources.php')) :?>
    	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/resources.css" media="screen" />
    	<?php endif;?>

    I placed it in the head tag and erverything, its just not working and I desperately need to get it working for the launch of my new site

Viewing 2 replies - 1 through 2 (of 2 total)
  • kreativjustin

    (@kreativjustin)

    Well, first off I have to ask if your resources.php is setup for template use. If not, this will not work.

    If you are not, here is the code.

    <?
    /*
    Template Name: resources
    */
    ?>

    Now, you need you to go and create a page in your dashboard (if you haven’t) and select the resources as the template.

    If you have done all of this, show us some snippets of your code.

    Thread Starter rcstudio

    (@rcstudio)

    big thanks, it worked

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Different Stylesheets for different templates’ is closed to new replies.