PDA

View Full Version : Hide Content Everywhere but Home Page?


ehoffman73
09-11-2011, 02:15 PM
I have some content in the header in my style, and I want it to run only on the home page of the site.

Is there any method to manage that with some HTML, CSS, JS, or some mod???? I need to only show a bunch of information on game day....when I put the code in it runs on every single page, which will annoy a lot of users.

I spent an hour or so searching and not knowing the right question or missing the right answer.

Thanks!!

--------------- Added 1315755174 at 1315755174 ---------------

I see this code:

<vb:if condition="THIS_SCRIPT == 'forumdisplay' AND $_REQUEST['pagenumber'] == '2'">

Whatever here

</vb:if>

So perhaps its possible...but don't know what VB calls the home page, plus will VB conditionals run anywhere they are seen, or only in specific things like widgets?

--------------- Added 1315757081 at 1315757081 ---------------

got it:

<vb:if condition="THIS_SCRIPT == 'content'">