Forums / Templates, Stylesheets, Page Layout / News Box on the Central Column of Front Page

News Box on the Central Column of Front Page

Locked

Started by hungoveragain on 4 Sep 2009, 6:46 AM · Views: 1,014

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
4 Sep 2009, 6:46 AM
#1
hungoveragain avatar

hungoveragain

New Zenner

Join Date:
Jul 2009
Posts:
17
Plugin Contributions:
0

News Box on the Central Column of Front Page

I have installed News Box Manager on my site, however I would like for the news box to appear only on the front page, and only at the bottom of the central column.

Failing this is there any way I can limit this box to appearing on the front page only?

I have a reasonably good understanding of php, css & sql.

Thanks

Mike

6 Sep 2009, 10:29 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: News Box on the Central Column of Front Page

I don't know this mod but in general there are a couple of ways of getting things to display only on the home page. There are php solutions but the easiest is a css solution.

Find the ID of the element in question. Lets make it a <div> with the ID of 'thiselement'.

First set the display to none with a rule like:

#thiselement{display:none;}

This means that it won't display on any page. Then we just set it to display on the home page by adding another rule:

#thiselement{display:none;}
#indexHomeBody #thiselement{display:block;}

So, you just need to find the ID of the element that contains the news thingy....

Nick
iszent.com