• I’ve browsed every thread on this subject and keep coming up with the same solution. Use this in header.php:

    <?php if( is_home() ) { ?>
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri(); ?>/style_Landing.css" />
    <?php } ?>

    Although the home (blog) page calls the secondary style.css, it does not conform to all the secondary css settings: i.e., the height of the header, padding, etc. The Home page still uses the settings of the primary style.css

    Any suggestions??

Viewing 16 replies (of 16 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    That hook is used in the functions.php file. When you use ‘init’ it is generally seen on the admin side and ‘wp_enqueue_scripts’ is for the front end/what users see and not the dashboard. ‘init’ is used more for plugins where as the other is used more for themes, I’ve noticed.

Viewing 16 replies (of 16 total)
  • The topic ‘Different syle.css for Home page’ is closed to new replies.