- This topic has 3 replies, 3 voices, and was last updated 6 years, 2 months ago by gerancos.
Viewing 4 posts - 1 through 4 (of 4 total)
- AuthorPosts
- June 4, 2017 at 5:11 pm #3017MatiasPParticipant
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?
June 7, 2017 at 8:58 pm #3026MatiasPParticipantFor 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; }
June 10, 2017 at 11:07 pm #3071HashKeymasterGreat
April 6, 2018 at 8:15 pm #5114 - AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.