[Resolved] Displaying top bar on blog pages and archives

Home Forums Support [Resolved] Displaying top bar on blog pages and archives

Home Forums Support Displaying top bar on blog pages and archives

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1303103
    Norman

    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?

    #1303149
    David
    Staff
    Customer Support

    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.

    #1303202
    Norman

    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?

    #1303278
    David
    Staff
    Customer Support

    Aah yes – go to Customizer > Additional CSS and remove:

    @media (max-width: 768px) {
        .top-bar {
            display: none;
        }
    }
    
    body:not(.home) .top-bar {
        display: none;
    }
    #1303670
    Norman

    that fixed it. thank you!

    #1303700
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.