Image hover effect [js file ]

Community Forums Forums Design Tips and Tricks Image hover effect [js file ]

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  Amit_Gaara 1 year, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45303

    Amit_Gaara
    Participant
    Post count: 13

    I want to implement this for all the featured images of my site , could write a  brief instructions on how to do it ? Thanks in advance !! Please !

    http://www.iliasiovis.com/hoverizr/

     

    http://www.iliasiovis.com/hoverizr/
    #57765

    Susan
    Moderator
    Post count: 9240

    As you posted this a while ago but received no reply, I wanted to check in to see if this is resolved. If not, please check in, and I will escalate.


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #57895

    Amit_Gaara
    Participant
    Post count: 13

    Nope its not resolved,is there a way to do this for the featured image of every post ? in genesis 2 of course!

    #59570

    slydawgg
    Participant
    Post count: 20

    Would something like this work if you placed it in your themes function.php file:

    <?php
    function theme_scripts(){
    wp_register_script('hoverizer', get_template_directory_uri() . '/library/hoverizer/jquery.hoverizr.min.js', array('jquery'));
    wp_enqueue_script('hoverizer');
    }
     
    function cwp_theme_footer(){
    ?>
    <script type="text/javascript">
    jQuery.noConflict(true);
    jQuery('.attachment-themes-thumbnail').hoverizr();
    </script>
    <?php
     
    }
    add_action('wp_footer', 'cwp_theme_footer');
    add_action('wp_enqueue_scripts', 'theme_scripts');
     
    ?>
    #59679

    Amit_Gaara
    Participant
    Post count: 13

    I tried that code,still no luck.The js file is uploaded in the themes js folder and when viewed-source we can easily see the code ,how to use it for featured images only ?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.