• Resolved genlisae

    (@genlisae)


    I have been poking around in the header.php and have found what I believe to be the relevant section

    <div class="site-branding">
    					<?php twentysixteen_the_custom_logo(); ?>
    
    					<?php if ( is_front_page() && is_home() ) : ?>
    						<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    					<?php else : ?>
    						<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
    					<?php endif;
    
    					$description = get_bloginfo( 'description', 'display' );
    					if ( $description || is_customize_preview() ) : ?>
    						<p class="site-description"><?php echo $description; ?></p>
    					<?php endif; ?>
    				</div><!-- .site-branding -->

    With <?php twentysixteen_the_custom_logo(); ?> being the relevant line. The problem is I don’t know where to put that line to have it where I want it. Is there a better way to do this?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should create a child theme, and then rearrange the header as you desire. If you simply edit the theme files for twentysixteen, then the theme is updated, you’ll lose the edits as they will be overwritten by the update.

    Read the Codex on creating your child theme based on twentysixteen, then start experimenting with moving the elements around to your liking within the child theme.

    I just did this on a site I’m working on – (put the logo to the left of the sitename and tagline, rather than above it). I simply moved the php for the logo out of the “site-branding” div – as below:

    <?php twentysixteen_the_custom_logo(); ?>
    
    <div class="site-branding">
      <?php if ( is_front_page() && is_home() ) : ?><h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
      <?php bloginfo( 'name' ); ?></a></h1>
      <?php else : ?><p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"
    Thread Starter genlisae

    (@genlisae)

    I am using a child theme. I will give that a try, thanks.

    Thread Starter genlisae

    (@genlisae)

    Worked. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move Logo inline with Site Title and Description.’ is closed to new replies.