Site logo

Archived topic

Add top bar only on specific pages

3 replies · Started by anabella on February 11, 2021

Viewing posts 1–4 of 4

Hi, I created a top bar (I did this by going to Appearance > Widgets > Top Bar > I added text) but I need to display that top bar only on specific pages (not on the entire website). Is there a way of achieving this?

Hi there,

yes, you can use the Layout Element:

https://docs.generatepress.com/article/layout-element-overview/

You can Disable the Top Bar.
Then set your Display Rules Locations for the pages you want it removed from.

If you have less pages to display it on ( more pages without the Top Bar ).
Then you can set the Location to Entire Site.
And the Exclude rules for the pages you want it displayed on.

Thank you so much David!! This is exactly what I needed

You're welcome

This archived topic is closed to new replies.