• Hi all.

    Because my theme uses jQuery itself, Fancybox for WordPress is not working.

    I put the WP function that makes jQuery load once but with no luck.

    Any suggestions?

Viewing 10 replies - 1 through 10 (of 10 total)
  • I’m assuming that you also removed jQuery direct call in the theme as well as adding it through the wp_enqueue_script() function, am i right?

    If that true, make sure your images link to an image file (not an atatchment page) or try troubleshooting settings.

    Sorry but without a link i can’t be of much more help. With a link maybe i can check the exact problem and let you know.

    i have these in my header.php

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.form.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ddsmoothmenu.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.prettyPhoto.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon-yui.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/Museo_Slab_500_400.font.js"></script>

    how would i go about modifying them??

    Thread Starter cansurmeli

    (@cansurmeli)

    Sorry for not writing my address. It’s located on https://www.apple-dunyasi.com.

    i tried to remove all the jquery script (posted above) from header.php and added the wp_enqueue_script() (the following code into header.php), and then fancybox worked.

    <?php wp_enqueue_script("jquery"); ?>
    
    <?php wp_head(); ?>

    however, i need the jquery to work the slider on my index page, without them, the slider won’t work.

    so what should i do to make them both work? do i relocate the jquery script somewhere else?

    i think i managed to figure it out…
    i relocate these code from header.php

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.form.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ddsmoothmenu.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.prettyPhoto.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon-yui.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/Museo_Slab_500_400.font.js"></script>

    to home.php
    and then add these code into header.php (after <head>)

    <?php wp_enqueue_script("jquery"); ?>
    
    <?php wp_head(); ?>

    then everything’s fine, except now there is a a blank bar above my navigation menu…but i’ll just make do with it

    is this method ok?

    i forgot, i also turned on the “Do not call jQuery” in the fancybox troubleshooting option

    Okay I’m using Magzimus (theme) and I’m not able to get Fancy Box to work… and I think is due to the theme calling the jQuery for the prettyphoto and the home page slider….

    What do I do

    Are you also using Magzimus???

    How do I get to work with inline content? I created a custom Javascript file to handle Fancybox calls and whatnot on my static page, but now I am working on converting those pages over to wordpress static pages for a clients website.

    The fancybox settings are a little obscure. I have changed the GALLERIES settings to the following custom line:
    jQuery('#login).addClass("fancybox");
    But when I click on my link to get the inline form to pop up in the fancy box, nothing happens.

    Thread Starter cansurmeli

    (@cansurmeli)

    Any progress…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: FancyBox for WordPress] Not Working!!!’ is closed to new replies.