• Hi,

    Im trying to add a custom logo which will appear on every page next to the site description, I’m using Twenty_Sixteen and have created a child theme.

    Any ideas please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Copy TwentySixteen’s header.php file to your child theme folder and make the changes there.

    Thread Starter shabbaranks

    (@shabbaranks)

    Thank you, I don’t suppose you have a link to instructions on how I add the logo? Ive uploaded it to my site its just linking it now.

    Thanks again

    I haven’t looked closely at the TwentySixteen theme yet, but I’m thinking either before or after line 40:

    $description = get_bloginfo( 'description', 'display' );
       if ( $description || is_customize_preview() ) : ?>
          <p class="site-description"><?php echo $description; ?></p>
    <?php endif; ?>

    In other words, either just before or after the line starting with <p class="site-description">, although you could probably inlcude it in that paragraph and then adjust it with some custom CSS.

    Sorry to barge in here – but…. How does one POST a NEW topic. I’ve been a member of this forum since 2013, but have never USED this forum

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    add this line of code

    <img src="<?php bloginfo('template_directory')?>/images/yourlogo" />

    if you want to add some css styling to it

    <img src="<?php bloginfo('template_directory')?>/images/yourlogo" class="logo_css" />

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to add a logo to the site title?’ is closed to new replies.