Jump to content
Sign in to follow this  
style

Display Features only on home page (posts page)

Recommended Posts

ceedubbceedubbcom

via Bryan Hadaway

.category #feature{display:none}

Add this to your Custom CSS. Wanted to do the exact same thing and this fixed it.

Share this post


Link to post
Share on other sites
Kate

Hi Christopher - Thanks for the suggestion. However, I think he wants to do the opposite ;) @style Along the same lines of @Christopher's suggestion, the quickest option would be to do this with CSS. However, note that the feature will still be loaded on the other pages. If you're cool with that, then you can use this CSS:

#feature {display:none;}
.home #feature{display:block;}
In addition, if you want it to appear on other pages in the future, you can add them to the second style (by using their unique class). For instance:
.home #feature, .postid-28 #feature{display:block;}

Share this post


Link to post
Share on other sites
ingame1

Hi guys, i think Chris was right and i have to thanks him for sharing that, lost several hours yesterday on it.

Share this post


Link to post
Share on other sites
Kate

@Marco I just reviewed the code again, and I looked at it wrong the first time. I thought it said

.home #feature{display:none;}

. You're right: that should work for @style. It's still important to point out that that solution will still load the feature section. It's just hidden with CSS ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×