Archived topic
Displaying top bar on blog pages and archives
5 replies · Started by Norman on May 27, 2020
How can I display the top bar on all blog pages and archives? I didn't find any option to do so. Do I need a special plugin to do so? And if yes, which?
Hi there,
first off add a Widget to the Top Bar area.
This will display it across the entire site.
Then use the Layout Element to Disable Element: Top Bar
https://docs.generatepress.com/article/layout-element-overview/
In the Layout Elements Display Rules - set the
Location: Entire Site
Exclusions: Blog, Archives and anywhere else you want it displayed.
Okay. I already got the widget for the top bar area.
I am not sure what the disable element should help? I mean..all i get to do is disabling the top bar on certain sites. I cannot add locations where i want to display it.
If I follow your guides, all I can achieve is disabling the top bar for the homepage. Does my site library come with some additional code that prevents the top bar from being displayed on the entire sites?
Aah yes - go to Customizer > Additional CSS and remove:
@media (max-width: 768px) {
.top-bar {
display: none;
}
}
body:not(.home) .top-bar {
display: none;
}
that fixed it. thank you!
You're welcome