Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #821736
    #821758

    Hey navindesigns,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function add_custom_image(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.logo img').hover(function(){ 
    jQuery('.logo img').attr('src','http://109.199.127.133/~beaut891/ohsnapselfie.com/wp-content/uploads/2017/07/logo_hover.png');
    });
    jQuery('.logo img').mouseleave(function(){
    jQuery('.logo img').attr('src','http://109.199.127.133/~beaut891/ohsnapselfie.com/wp-content/uploads/2017/06/logo-1.png');
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_image');

    Best regards,
    Mike

    #821851

    YOU ARE AWESOME.

    Thank you so much!

    #821877

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add Hover On Logo’ is closed to new replies.