Site logo

Archived topic

Tagline below logo

11 replies · Started by William on November 18, 2020

Viewing posts 1–12 of 12

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

Hi there,

I'm not seeing a tagline currently.

Can you add it in first?

Sure its added here

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

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/

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

Not a clue unfortuantely

Can you check under Customizer > General?

Ah thank you for that - it is 'Floats'

Awesome thanks!

No problem :)

This archived topic is closed to new replies.