Site logo

[Resolved] Tagline below logo

Home Forums Support [Resolved] Tagline below logo

Home Forums Support Tagline below logo

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1536415
    William

    Hi there,

    Is there a way to place the tagline under the logo instead of to the side? Looking to do for bookanalysis.com

    Kind regards,

    Will

    #1536483
    Leo
    Staff
    Customer Support

    Hi there,

    I’m not seeing a tagline currently.

    Can you add it in first?

    #1536512
    William

    Sure its added here

    #1536514
    William

    I would also appreciate being able to hide it for mobile too

    #1536610
    Leo
    Staff
    Customer Support

    Hmm let’s just try this PHP snippet:

    add_filter( 'generate_logo_output', 'tu_logo_class', 10, 3 );
    function tu_logo_class( $output, $logo_url, $html_attr ) {
        printf(
            '<div class="site-logo">
    	     <a href="%1$s" title="%2$s" rel="home">
    	         <img %3$s />
    	     </a>
    	 <p class="site-description hide-on-mobile" itemprop="description">
                 Literature Reviews, Summaries and Analysis
             </p>
    	</div>',
    	esc_url( apply_filters( 'generate_logo_href' , home_url( '/' ) ) ),
    	esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) ),
    	$html_attr
        );
    }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1536618
    Leo
    Staff
    Customer Support

    Question – are you using the float or flex version of the theme?

    #1536705
    William

    Not a clue unfortuantely, happy to try whatever CSS you can give me.

    Made the issue appear in a sandbox here: https://wordpress-425633-1473008.cloudwaysapps.com/

    #1536754
    Leo
    Staff
    Customer Support

    Not a clue unfortuantely

    Can you check under Customizer > General?

    #1537379
    William

    Ah thank you for that – it is ‘Floats’

    #1537872
    Leo
    Staff
    Customer Support

    I see. In that case you have to the PHP snippet here:
    https://generatepress.com/forums/topic/tagline-below-logo/#post-1536610

    If you switch it to Flex then we can just use some CSS.

    #1538085
    William

    Awesome thanks!

    #1538269
    Leo
    Staff
    Customer Support

    No problem 🙂

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