WordPress.org

Ready to get started?Download WordPress

Forums

Make a div clickable (3 posts)

  1. groochy
    Member
    Posted 1 year ago #

    I'm working for a group of schools and I have to make their websites.

    Everything works but only one thing is not working and i spend almost to much time already to find a solution...

    In need the logo in the upper left corner of the site to be clickable.

    http://www.bsdeberk.be this one of the sites i made.

    any help would be welcome.

    thx !

  2. Sumit Singh
    Member
    Posted 1 year ago #

    you've placed logo as background image of div.
    replace the code with this code and style it. this is the common structure of clickable logo.

    <h1><a href="<?php echo home_url( '/' ); ?>" title="<?php bloginfo( 'name' ); ?>"><img alt="<?php echo get_bloginfo( 'name' ); ?>" src="img path" /></a></h1>
  3. groochy
    Member
    Posted 1 year ago #

    Hello Sumit

    Thx for the reply, i tried it but is still doesn't work (probably i'm doing something wrong).

    Here the link to my header.php

    I copied your code and my code is also there...

    Can you help me plz?

    thx

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.