SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: is_home()?

  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,582
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    is_home()?

    I Inserted
    PHP Code:
    <?php if ( is_home() ) { ?>
        <link rel="stylesheet" href="/nivo-slider/themes/default/default.css" type="text/css" media="screen" />

        <link rel="stylesheet" href="/nivo-slider/nivo-slider.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/nivo-slider/style.css" type="text/css" media="screen" />
    <?php ?>
    into my header.php file as I'm trying to customize the home page
    http://www.urturt.com/
    But those styles arent even linking (view the source)
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make different header.php for home page and call it from home.php
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW

  3. #3
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,582
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    k, thanks...
    "Oh, and Jenkins--apparently your mother died this morning."

  4. #4
    SitePoint Zealot
    Join Date
    Apr 2003
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or try using

    PHP Code:
    is_front_page() 
    instead of

    PHP Code:
    is_home() 


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •