• newsgrip

    (@newsgrip)


    I was surfing through wordpress forum and found that if one uses
    <img class=”site-logo” src=”<?php echo get_stylesheet_directory_uri(); ?>/images/site-logo.png” alt=”site logo” />

    code and add this
    .site-header hgroup { display: none; }
    .site-logo { max-width: 100%; height:auto; }
    to style.css one can have responsive logo. However, I am not able to link my logo to my homepage. If somehow it links, its responsiveness goes. Please help me with proper code.
    Thanks.
    Regards.

Viewing 1 replies (of 1 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try wrapping your image in an anchor tag;

    <a href="/">
     <img class="site-logo" src="<?php echo get_stylesheet_directory_uri(); ?>/images/site-logo.png" alt="site logo" />
    </a>

Viewing 1 replies (of 1 total)
  • The topic ‘Theme: Twenty Twelve Responsive logo not linking to homepage’ is closed to new replies.