Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Try removing this bit:
.page-template-template-magazine
Thanks Andrew.
Sadly didn’t work. Went back to no padding on both blog and individual posts.
Here is the full custom css on the the child theme:
#contact-page ol.forms textarea {
height: 80px;
}
#portfolio {
padding-left: 50px;
}
.nocomments {
display: none;
}
#nav-container #navigation {
background: none;
}
.page-template-template-magazine #navigation {
margin-bottom: 30px;
}
Any other suggestions?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Sounds like a CSS specificity issue, try this instead:
body #navigation {
margin-bottom: 30px;
}
Well done – that’s worked. Cheers – HAPPY EASTER!
Ah, hang on, adding
body #navigation {
margin-bottom: 30px;
}
and removing
.page-template-template-magazine #navigation {
margin-bottom: 30px;
}
has thrown out the homepage slider
http://www.designandinternet.co.uk/
Is there a way for just the blog and individual posts to be padded and the rest of the site left as is?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Yes, if you look at the <body> element:
- Open your page
- Right click
- Select ‘view source’
- Search code for “<body”
You will see that you have a range of classes on that body element. Some of them will be available across the templates that you want.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
So try this:
.single #navigation,
.blog #navigation {
margin-bottom: 30px;
}
Done and working. Thanks for the tips – cool!