Forums

Different stylesheet for index.php page? (3 posts)

  1. Zoomrix
    Member
    Posted 3 years ago #

    Hi,

    I have two stylesheets. One specifically for the index page [style_index.css] (with a different background element on the body tag) that I want to only apply to the index.php page (the front page). The rest of the pages I want to utilize the main stylesheet [style.css].

    I've attempted to use conditional tags [is_front_page()] but only ended up completely messing up the template.

    Any help appreciated,

    GeorgeKotelnikov
    http://www.zoomrix.com

  2. DFdou
    Member
    Posted 3 years ago #

    try is_home(),like:
    if(is_home()){//load style_index.css }else{}

  3. Zoomrix
    Member
    Posted 3 years ago #

    Yeah. Thanks.

    Did some simple research inside of the WordPress forums and came up with the perfect solution.

    http://wordpress.org/support/topic/219732?replies=14

    GeorgeKotelnikov
    http://www.zoomrix.com

Topic Closed

This topic has been closed to new replies.

About this Topic