Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Display site title in sticky navigation bar

  • Hi,

    I would like to display my site title in the sticky navigation bar (instead of a logo image), so I found this snippet.

    Does work fine, but it seems that logo image is required to have there as well?
    Is there a way to display my site title only, without hiding logo with CSS?

  • Hi there,

    You can remove the $output . from the code like this:

    add_filter( 'generate_sticky_navigation_logo_output', function( $output ) {
        $title = '<div class="sticky-navigation-title">Your Title Here</div>';
    
        return  $title;
    } );
  • Hi Ying,

    You mean, still have a logo image set in the Customizer (Layout > Sticky Navigation), but you simply remove it from the frontend snippet?

  • Thank you Ying!
    I already posted a feature request regarding this, hopefully this will be added in the (near) future 🙂

  • Hope so 🙂

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