Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #853508

    Hi, Im my website, Im using an image as the logo. I set it as the logo background, I want to make it a clickable link to the home page, I do not want to change anything about the image, just make it so its clickable..

    Thank you

    #853647

    Bump

    #854150

    Hi,

    Background images are not linkable unfortunately, so if you want to use what you have now then you would have to add a link to the whole header. Not sure if want to do that? If not then you might want to try to add the images to widgets in the header instead? http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/

    Best regards,
    Rikard

    #854151

    yes, a link in the whole header would be fine.
    How can I do that.

    #855027

    Can you please let me know how to do that?
    Thank you

    #855164

    Hi,

    Please add this script in the functions.php file.

    // custom script
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    ?>
    <script type="text/javascript">
    (function($) {
        $(".av-logo-container").on('click', function() {
          window.location.href = 'http://cfc.amityweb.com.au/';
        });
    })(jQuery);
    </script>
    <?php
    }

    And then use the css code.

    .av-logo-container {
      cursor: pointer;
    }
    

    Best regards,
    Ismael

    #855445

    works great!

    Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Logo Background Image as a link’ is closed to new replies.