Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #269274

    Hi – sorry another question.

    I am using the Fancybox jQuery plugin. When I click on the item that opens the Fancybox, the background of the main page scrolls up a little bit. I copied this onto a site running the standard WP theme, and it did not happen. It looks like there is an Enfold script running that is creating this.

    Any tips on how to fix it? I will post a private message with the link to the site.

    Thanks!

    #269276
    This reply has been marked as private.
    #270139

    Hey!

    Tbh I’m not familiar with the fancybox theme and I don’t know why the page jumps when you click on the image links. You can try the child theme I uploaded here: http://www.mediafire.com/?05ho02ecut516hu – it replaces the prettyphoto script with fancybox and you don’t need to activate any additional plugins.

    Best regards,
    Peter

    #270163

    Hi Peter – thanks! Fancybox isn’t a theme, but a jQuery plugin.

    Could you point me to the pieces of your child theme that I need? I am already running a child theme so don’t want to overwrite the whole thing. Also, I’m looking to create the Fancybox effect when I click on a specific icon (not a photo) – will this allow me to do that?

    Many thanks!
    Anne

    #270227

    Hi Anne,

    It’s happening because you are doing a inline-content lightbox via ID (which causes the smooth transition effect when clicked). Try adding this at the end of the theme functions.php file:

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.pricing-table a').unbind();
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    And this to the Quick CSS:

    .pricing-table a .overlay-type-extern {
        display: none
    }

    Regards,
    Josue

    #271363

    Josue – perfect! You are awesome. Really appreciate the help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Fancybox jumping on click’ is closed to new replies.