Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Conditional h6 tag on home page???

Old Apr 24, 2013, 05:54 PM
18 posts · Feb 2013
Hello everyone,

I've added:

td#middle h6 {
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;

to the css.php file and it works great. Does exactly what I was expecting. I was wondering if there was a way to make it only apply to the home page and do something like this:

td#middle h6 {
margin-left: 30px;
margin-right: 30px;

on all other pages/posts.

Any ideas?

Old Apr 25, 2013, 05:25 AM
juggledad's Avatar
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
add 'body.home' to the selector


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Tag For Home page ONLY sober Header configuration & styling 1 Jan 14, 2013 02:07 PM
Conditional category styling = PHP bender57 Center area post/pages 1 Dec 17, 2010 07:09 PM
Conditional div background by Page Parent jaxon Atahualpa 3 Wordpress theme 9 May 6, 2010 10:19 AM
Conditional PHP issue MyJourneytoMillions Center area post/pages 6 Feb 10, 2010 03:11 PM

All times are GMT -6. The time now is 03:52 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.