• Hi Noob here,

    Can someone please tell me how to properly format this javascript function to include in my functions.php file?

    $(function() {
    	$(".jqzoom").jqzoom();
    });

    Thank you

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter macart

    (@macart)

    Thanks for that. Still no hover effect.
    Is there some reason that JQZOOM doesnt work with wordpress?
    Anyone get this to work in WordPress?

    Thanks

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    And macart, we can’t debug magic code without seeing the actual site. Show us what’s broken. Give us a URL. Then somebody might be able to actually help you.

    Thanks Otto42!

    Macart, I have it working with WordPress MU 2.9
    thanks to Otto42’s suggestion:

    jQuery(document).ready(function($) {
        // $() will work as an alias for jQuery() inside of this function
    
        $(function() {
    	$(".jqzoom").jqzoom();
        });
    
    });

    I suggest you check your paths too, make sure everything is loaded correctly.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Proper formating for Javascript function?’ is closed to new replies.