ThemeShaper Forums » Thematic


Thematic Power Blog Leaders on Front Page Only

(9 posts)
  • Started 10 years ago by rysch
  • Latest reply from relequestual
  • This topic is resolved
  1. Hi, I would like to know if there is a way to only display the three widgetized leader areas only on the home page. Right now they show up on all of the pages. Is there a way to do this?

    Thanks in advance,


    Posted 10 years ago #
  2. hi rysch. what do you mean by the leader areas?

    there is probably 2 ways to do this regardless of where they are.
    can be done with css or php.
    css by making the widget areas display none when inside a body with a class of home.
    php by encasing the get widgets code with an if statement.

    css is probably easier, php is probably the "correct" way to do it.

    your call

    Posted 10 years ago #
  3. Hi, I've linked to my site so you can see what I mean...

    This is the main page:

    It currently has three "leaders" (this is what they were called in CSS I think) that are just below the category menu and include: "Christmas at CTR", "Messy Church," and "Services"

    Now on all the other pages, these "leaders" show up as well. How can I make these three "leaders" show up on the home page only?

    You say the CSS is easier? I do like easy but if PHP is the more correct way (the safer way?) then perhaps I should go with that.

    Thanks for your reply,


    Posted 10 years ago #
  4. As I think so more about this, I was wondering, would it make sense to make a page template that I could select when I make a page that would be specifically for pages I don't want the leader boxes to show up on? THis would allow me to display the boxes on some pages while not on others. I suppose it would be a bit like hiding the side bars on a full-width page template.

    Posted 10 years ago #
  5. Hi, I am still trying to figure out a solution to my question.

    I did some searching and found this question and answer on the forum:

    But it is for a different theme so it doesn't apply.

    Any help will be much appreciated!

    Posted 10 years ago #
  6. Hi rysch,

    I understand what you are on about now. Always useful to paste the link in.
    Are you a Christian yourself or just working for the church to do their website?
    I ask because I'm a Christian, and it's always nice to help other brothers and sisters!

    Anywho, I had a dig around in your css, and I think I have a solution for you...
    If we hide the div with the id of leader globally, and then only display it on the home page, if I understand correctly, that will be what you want.

    #leader {
    	display: none;
    .home div #leader{
    	display: block;

    I have tested this, and it should work for you.

    Any further questions, be sure to buzz me on twitter so I don't miss them =] (@relequestual)

    Oh, and in this circumstance, I'd say using a css solution is perfectly fine.

    Posted 10 years ago #
  7. Hey thanks so much for helping me with this!! It worked perfectly! I appreciate it!

    Yes, I'm a Christian, so thank you for helping out one of your own...even if it isn't in more "spiritual" matters (then again, who said this couldn't be an act of worship! :-) )


    Posted 10 years ago #
  8. By the way, this topic can be marked "resolved" I'm not exactly sure how to do that.

    Posted 10 years ago #
  9. No worries. Glad to help out. haha yeh =]

    You should be able to mark it resolved if you go to edit the question I believe.

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.