Archived topic
One logo in Primary navigation, another one in posts with header element.
14 replies · Started by Santa on March 11, 2019
Hi!
1. How to add another logo file only to posts? Currently have made custom page header element to posts and would like to add different logo instead of default one that I have added in Primary navigation.
2. Is there also a way to change the footer background & text color only for homepage?
3. How to hide categories from post right sidebar?
Thank you.
Hi there,
1. Have you tried the Navigation Logo option in the header element you created?
https://docs.generatepress.com/article/header-element-overview/#site-header
2. Try this CSS:
.home .site-info {
color: #000;
background-color: #fff;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
3. Try this CSS:
.single .sidebar #categories-7 {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
You can also consider using a plugin like this to set conditional sidebar:
https://wordpress.org/plugins/content-aware-sidebars/
Hello Leo!
Thank you for your help! Everything now is working just as I wanted.
Thanks!
No problem :)
Could you answer, if there is a way to choose an area of featured photo that is displayed in post header element?
Hi there,
What do you mean by an area? Like a specific portion of the image to show up?
Hi!
Yes, a specific portion of the photo to display in the header element, because the actual photo most of the times is a larger size.
Maybe someone can also suggest how to change where the post title is located when going in blog and then choosing category- because it now is in the middle below the image with a large padding on the left side.
The "Background Position" option allows you to specify which portion of the image to show.
The position of the content inside the hero element is determined by the padding. For example, if you add lots of left padding, the content will be pushed to the right.
Let me know if you need more info :)
Hi! Thanks, found the post header options.
But how to regulate the title padding for the blog categories page? For example categories/category1 and there are all the posts, but for me the titles for the posts are way too to the right.
Hi there,
you have 60px of left padding on the Customizer > Layout > Container. You can reduce this to correct that issue. Don't worry it will still be there for your single posts as we included that in the CSS for the sticky social icons.
Thank you for the help!
Is there a way to add left padding to footer widgets only on computers, to align them in one line with only the home page content?
You can adjust the Customizer > Layout > Footer > Footer Padding - currently you have 100px left padding which can be reduced to align with the content.
Hi David!
Thanks, but I wanted to do something different.
I wanted to change footer widget padding for home page only. I am okey with the footer padding, as the icons are in line with page content and I would like to have the footer widgets the same, but only in homepage, as in other pages the padding I have now is okey.
Aah ok - try this:
@media (min-width: 769px) {
.home .footer-widgets-container {
max-width: 1120px;
}
}