Forums

Easy FancyBox
[resolved] Weird behaviour on custom theme (7 posts)

  1. nakreerkan
    Member
    Posted 4 months ago #

    Hi,

    I did some work on a WP-site that uses a custom theme.

    I stumbled upon a weird behavior of Easy Fancybox, I think it is connected to the custom theme. We are stuck with the theme and have no way of asking he who made it in the first place.

    Whenever we open an image on a post, the Fancybox popup shows but is empty and small (about 2x2 cm) then it position itself in the left upper corner and there is no close-button on the popup.

    I have followed the specific instructions in order to get Easy Fancybox to work with custom theme but there is no difference to the requirements of the Readme-file. So we are stuck at the moment!

    Please help! :-)

    Thanks!

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Posted 4 months ago #

    If you have a link for me, I can take a quick look...

  3. nakreerkan
    Member
    Posted 4 months ago #

    Hello! Many thanks, here is a link: http://www.tsproduktion.se/behind-the-scenes/

    The picture I am testing with is the duck picture. Do you spot any difference in the code?

    Thanks!

  4. RavanH
    Member
    Posted 4 months ago #

    Two things:

    1. The script http://www.tsproduktion.se/wp-content/themes/SMH/scripts/sf/sf.js?ver=1.4.8 seems to be missing, but this is unrelated.

    2. The theme is missing a call to wp_footer() in its footer.php (does it have any such template file?)

    See http://codex.wordpress.org/Theme_Development#Footer_.28footer.php.29 for more...

  5. nakreerkan
    Member
    Posted 4 months ago #

    Hi,

    Thanks for input.

    I put the wp_footer() function in the footer.php file just before the closesure of the body tag and I can see three JS lines in the source now that was not there before.

    However, it does still not work. If the wp_footer() function was missing, maybe other vital functions are missing that is needed for easy fancybox? Do you have any suggestions for them?

    It works here for Video-links on this page: http://www.tsproduktion.se/our-directors/
    But not for images in posts.

    Thanks!

  6. RavanH
    Member
    Posted 4 months ago #

    Your theme seems to load the jQuery library on it's own, resulting in a second instance of the library. Remove the line

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>

    from your themes header.php

  7. nakreerkan
    Member
    Posted 4 months ago #

    Many thanks for your support, your help let us fix this problem and the theme is now fully working with Easy Fancybox!

Reply

You must log in to post.

About this Plugin

About this Topic