[Resolved] Site title AND site description when I "Use Navigation as Header" and Mobile on

Home Forums Support Site title AND site description when I "Use Navigation as Header" and Mobile on

  • This topic has 8 replies, 2 voices, and was last updated 3 months ago by David.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1138299
    Olle

    Does not seem possible. Why?
    I also want to show it with the sticky navigation and the mobile menu.

    The menu options are really confusing and cumbersome to get to work. Takes a lot of time even for a simple task like this.

    Regards
    Olle

    #1138542
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    We opted to leave the site tagline out of the navigation branding, as there typically isn’t enough space for it.

    However, you can add it back in using a filter:

    add_filter( 'generate_site_title_output', function( $output ) {
        $tagline = '<div class="site-description">Your tagline here</div>';
    
        return $output . $tagline;
    } );

    Let me know if that helps or not 🙂

    #1138742
    Olle

    Hi
    This seem to work if I put the code in the main theme functions.php

    If I put the code in the child themes function.php it does not. It screws up the layout and shows the mobile menu on desktop an not the site tagline.among other things

    Regards
    Olle

    #1138918
    Olle

    Sorry. It was a misstake in the code I made.

    Regards
    Olle

    #1139308
    Tom
    Lead Developer
    Lead Developer

    No problem – all working now?

    #1373274
    Marius

    Hey Tom,

    Any idea how can I position the site description under the site name? The CSS needed is more than I can handle…

    Similar to the normal header. Logo on the left, site title and site description to the right of the logo, with description under title.

    But when using the navigation as a header everything changes. Adding the site description with the help of the add_filter in functions.php, it adds the text but the text is to the right of the site title.

    #1373297
    David
    Staff
    Customer Support

    Hi there,

    if you can raise a new topic and share a link to the site where we can see the alignment issue i can help with the CSS.

    #1373324
    Marius

    Hi David,
    I went with the normal header after all so no need anymore for the css solution.
    But thank you for your quick reply and your availability to help!

    #1373365
    David
    Staff
    Customer Support
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.