Site Title, tagline and logo

Hello there,

Is there a way to have all three on my header without downloading a child theme?

Estelle

Dear Estelle,

You have to edit the header.php file, then find the following 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:


<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 endif; ?>
	<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>	        
</div>

Just for information, since you edited the main theme’s file, the changes will be lost once the theme gets updated in future. Thus you have redo the modification.

Regards,
Kharis

Is there an easier way to accomodate this? OR how can I have the logo beside the site title and tagline instead of above it?