• toycrane0070

    (@toycrane0070)


    I would like to add tagline underneath the logo, but the tagline only visible when I removed the logo. How can I make logo and tagline visible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello there,

    To display the site logo along with the description, you’ve to edit the header.php file in the child theme mode. The first thing to do is to create a child theme or you can use our premade one which can be downloaded from this link. Inside child theme’s folder, you’ll need a copy of the header.php file template from parent theme. Open this file using your code editor program, and then find this code block:

    
    <div class="col-md-4 col-sm-8 col-xs-12">
        <?php if ( get_theme_mod('site_logo') ) : ?>
    	<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
        <?php else : ?>
    	<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    	<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
        <?php endif; ?>
    </div>
    

    Replace it with this:

    
    <div class="col-md-4 col-sm-8 col-xs-12">
        <?php if ( get_theme_mod('site_logo') ) : ?>
    	<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
      <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
        <?php else : ?>
    	<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    	<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
        <?php endif; ?>
    </div>
    

    Lastly, install and activate your child theme.

    Regards,
    Kharis

    Thread Starter toycrane0070

    (@toycrane0070)

    Thanks!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘tagline under logo’ is closed to new replies.