1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Rep Power

    How to hide using display:none just on index page.

    #text-4 { display: none; }

    I have a widget installed on the index page of my blog and i only want it to display on that page only. Is there a simple way to do it... the id for the widget is id=text-4.

    I inserted the above quicky into one of the other text widgets and it did remove it.. so I assume it will work once I put it into my main .css file.. but how do I code it to remove the text widget except on the index page..

    Something like this but I am sure that cannot be placed into my css file.. it won't understand that..

    If not index page then #text-4 {display: none:}

  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Rep Power
    You would put it in a separate CSS file that you only include on pages where you want to remove the widget.

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo