Home Forums Total Display both the logo and the default site tagline text on the Header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3017
    MatiasP
    Participant

    It says on the documentation that I can either display my website logo or the default site tagline text on the Header, but is there a way to display both at the same time?

    #3026
    MatiasP
    Participant

    For the people who want this as well, this is how I solved it:

    I overrode the file header.php on a child theme. This is all you have to change:

    			<div id="ht-site-branding">
    				<?php 
    				if ( function_exists( 'has_custom_logo' ) && has_custom_logo() ) : // <---delete this if
    					the_custom_logo();
    				else :  // <---delete this too
    					if ( is_front_page() ) : ?> 
    						<h1 class="ht-site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    					<?php else : ?>
    						<p class="ht-site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
    					<?php endif; ?>
    					<p class="ht-site-description"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'description' ); ?></a></p>
    				<?php endif; ?>
    			</div><!-- .site-branding -->

    Then, to make everything be displayed correctly, I wrapped the site title and description on a div called “”ht-site-title-and-desc”. Then, on the “additional CSS” section on WordPress, I added this:

    
    #ht-site-title-and-desc {
    float:left;
    width:80%;
    padding:inherit;
    padding-left:5px;
    }
    #3071
    Hash
    Keymaster

    Great

    #5114
    gerancos
    Participant

    Hi,

    Of course, this is a feature that should be standard as most people will want this…


    @MatiasP
    : I tried your solution but didn’t work. Any chance you can explain more clearly what needs to happen to make this work?

    Thanks a lot!

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