I am relatively new to Wordpress, but I'm sure there's a way to do what I'd like to do.
I have a container in my template, and on the home page I'd like to specify slightly different padding to this element.
My current CSS is as follows:
#main_content .container {
position: relative;
padding: 120px 0;
}
I'd like to bring the padding down to 80px if I'm on the Home page, otherwise keep it that way.
Is this something I'd have to do within the template or are there fancy 'WordPress only' CSS tricks that I am currently unaware of?
In my limited experience, I think I should be able to specify whether or not the page is_home
or similar, and select a custom stylesheet in the header.php
file for the home page. Presumably, with !important
after my padding change for the CSS.
Can I get some direction? The results I'm finding through searching aren't particularly what I'm trying to do.