• Resolved Bedrulbedul

    (@bedrulbedul)


    I’ve put my logo in the header and I want it to link back to the Home page. Somebodywho knows how to go about it?
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • did you modify the header.php file to do this or what?

    I love the minamaze theme and use it often. I just looked at how I replaced the logo, in my child theme’s header.php I used this code:
    Just after:

    <div id="header-core">

    I have this code:

    `<div id=”logo”>
    <a rel=”home” title=”All About Electric” href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”><img src=”wp-content/themes/minamaze-aae/aae-Logo.png” alt=”All About Electric Professional Home Services” /></a>
    </div>`

    Try replacing this:

    <a rel="home" title="All About Electric" href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="wp-content/themes/minamaze-aae/aae-Logo.png" alt="All About Electric Professional Home Services" /></a>

    with:

    <a href="/"><img src="<?php bloginfo('stylesheet_directory'); ?>aae-Logo.png" title="All About Electric" alt="All About Electric Professional Home Services"/></a>

    That’s assuming the logo file is in the root of your theme’s folder? It appears that way from your code…

    If you could post a link to site, maybe I could see better.

    Thread Starter Bedrulbedul

    (@bedrulbedul)

    Thank you @janet4now

    I really appreciate your help.
    I’ve put the logo in the header area. I’ll post a link to the site as suggested
    https://www.accepta-vi.se

    The path of the logo is different on your site than was in the code you posted above… use this instead.

    <a href="/"><img src="/wp-content/uploads/2014/09/logga1600x2001.png" title="All About Electric" alt="All About Electric Professional Home Services"/></a>

    Thread Starter Bedrulbedul

    (@bedrulbedul)

    Thank you so much @janet4now it works great!
    By the way I did’t post any paths above – it was somebody else trying to help. Thanks to you too @totaltec.
    ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to make the header a link?’ is closed to new replies.