Forums

FancyBox for WordPress
Fancy Box with Special Text Plugin (2 posts)

  1. SLDdesign
    Member
    Posted 5 months ago #

    Fancy Box is working with the gallery settings:
    Make a gallery for all images on the page (default)
    However, it then scrolls through all property listing galleries on the page. (which is what it is set to do)

    I tried to change it to:
    Make a gallery for each post (will only work if your theme uses class="post" on each post, which is common in WordPress
    but it does not work. I am not sure if this is due to the plugin
    Special Text Box or if I have a different issue to deal with.

    The goal is to have each gallery within the post scroll and then stop at the end of the gallery.

    Thank you for your assistance.
    sample page: http://www.casagranadaproperties.com/category/granada/

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

  2. José Pardilla
    Member
    Posted 5 months ago #

    Hi SLDEsign,

    Your theme doesn't apply the .post class to each post in the index, the fancybox plugin relies on this common practice to limit galleries to each post.

    You can use the custom gallery option (it will show a text area when selected). there use something like this:

    var posts = jQuery(".stb-container");
    posts.each(function() {
    jQuery(this).find(thumbnails).addClass("fancybox").attr("rel","fancybox"+posts.index(this)).getTitle()
    });

    With your theme, the class .stb-container should work.

Reply

You must log in to post.

About this Plugin

About this Topic