Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #291400

    Hi,
    I removed the logo from the header and added a background graphic. Is there any way to hyperlink the background graphic.

    http://s25.postimg.org/zeyrd2l6n/header.png

    #291481

    Hey Snerp!

    Thank you for using our theme.

    It is possible to add a click event to the complete header section with the logo, if you have the menus below as on your screenshot.

    Put the following in functions.php and replace the URL:

    
    add_action('wp_footer', 'my_header_link');
    function my_header_link()
    {
    ?>
    <script>
    jQuery(function() {
    jQuery('#header_main').on('click', function(){
    window.location.href = "http://www.google.com";
    });
    });
    </script>
    <?php
    }
    

    Regards,
    Günter

    • This reply was modified 10 years, 4 months ago by Günter.
    #291704

    Thanks that worked. Is there a way to have the finger/hand appear when somebody scrolls over the banner so they know it’s a link?

    #291719

    Hi!

    In custom.css or Enfold->General Styling->Quick CSS field put the following:

    
    #header_main:hover{
    cursor: pointer;
    }
    

    Regards,
    Günter

    #292516

    Awesome, thanks!

    #292554

    Hey!

    Glad we could help you. Enjoy the theme.

    Regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Header Background’ is closed to new replies.