Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php if(is_home()){ ?>
        <link href = "home_style.css" type = "text/css" rel = "stylesheet" />
    <?php }else{ ?>
        <link href = "other_style.css" type = "text/css" rel = "stylesheet" />
    <?php } ?>
    Thread Starter helgipetersen

    (@helgipetersen)

    One more, and if I will Change the Home.php tp index.php. how do I that?

    Well.. You could add <link href = “home_style.css” type = “text/css” rel = “stylesheet” /> to the index.php file and add the other to the generic page.php file

    That means that when index.php is called (home page), itll display that style. and visa versa.

    Just take it out of the head.

    Hope that works ^_^

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I load different style sheets?’ is closed to new replies.