Skip to:
Content
Pages
Categories
Search
Top
Bottom

Image Logo doesn't link to homepage

  • Avatar of DesignAc
    DesignAc
    Participant

    @designac

    Hello everyone

    My site is http://www.foodnb.com

    I’m using bp-default theme and made this modification to my child theme’s header.php:

    
    <h1 id="logo" role="banner"><a href="http://www.foodnb.com/" title="FoodnB Network"><img border="0" src="url of my image" /></a></h1>
    

    in order to change the text logo to image logo.

    The problem is my link doesn’t work. When I remove the float:left; property for h1 tag, it works. Or replace the h1 tag with a div without any float property, it works too.

    What do you think about this problem?
    Thanx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of DesignAc
    DesignAc
    Participant

    @designac

    Anyone ????

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @designac
    This is untested so make sure you make a backup of your child themes header.php in case things go awry! You could comment out the line you have above, then just below it copy and paste the below code. You will have to make adjustments to the path of the logo and height and width. You can use CSS to adjust it by using the selector #my-custom-logo Good luck!

    
    <div id="my-custom-logo"><a href="<?php echo home_url(); ?>"><img src="<?php echo home_url(); ?>/wp-content/uploads/PUT_REMAINING_PATH_TO_IMAGE_HERE "    alt="my-custom-logo"    height="?" width="?"></a></div>
    
Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘BP-Default’ is closed to new topics and replies.