Give help. Get help.

  • # March 22, 2013 at 8:53 am

    function portfolio_script_manager() {

    // wp_register_script template ( $handle, $src, $deps, $ver, $in_footer );
    wp_register_script(‘portfolio-masonry’, get_template_directory_uri() . ‘/js/jquery.masonry.min.js’, array(‘jquery’), true, true);
    wp_register_script(‘portfolio-imgload’, get_template_directory_uri() . ‘/js/jquery.imagesloaded.min.js’, array(‘jquery’), true, true);

    // custom scripts (added)

    add_action(‘wp_enqueue_scripts’, ‘portfolio_script_manager’);

    So I copied my theme to test out masonry verse isotope. Made the necessary changes, and now the site doesn’t want to load either of them. if I swap back to the other theme, isotope starts running correctly, but dev tools is saying the files aren’t even there.

    # March 22, 2013 at 1:51 pm

    Still not sure whats up. If I add to the footer it works, but this register/enqueue isnt.

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

You must be logged in to reply to this topic.