Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7692903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:57:34+00:00 2026-05-31T20:57:34+00:00

I’m a little confused with the next steps to take on a project I’m

  • 0

I’m a little confused with the next steps to take on a project I’m working on and hopefully you could give me some ideas/help.

http://goo.gl/4d72h

I’m using WordPress, and a combination of Portfolio Slideshow Pro (http://madebyraygun.com/wordpress/plugins/portfolio-slideshow-pro/) and Masonry (http://masonry.desandro.com/index.html) to create the landing page of this project.

As you can see by visiting the site, each ‘post’ is wrapped in a grid_6 float, allowing two floats per row, and then I am using masonry to place everything together as it does. I’ve wrapped the masonry code in a (window).load function to wait until all the featured images have loaded and then it starts the masonry. Pretty straightforward.

    <script>
    $(window).load(function(){
    var $container = $('.masonry-cont-area');

    $container.imagesLoaded( function(){
      $container.masonry({
        itemSelector : '.single-fg-post'
      });
    });
});
    </script>

However, the masonry is only taking into consideration the first feature image for it’s positioning etc. If you click the images, or the dots, it’ll advance to the next image which can be longer or shorter in height, which is causing a few problems. Because the masonry has already taken place, it’s overlaping with the next post etc. You can see what I mean when you click on the images on the link given above.

So, what I’m after today, is any ideas on how this can be fixed? Can masonry take the height from the tallest image in the slideshow? Can it changes dynamically as the images are clicked? Can I make sure that a margin at the bottom is ALWAYS given on absolute positioned items?

Any ideas would be really appreciated.

Thanks all,
Richard

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:57:36+00:00Added an answer on May 31, 2026 at 8:57 pm

    You slideshow plugin does not seem to expose any event hooks. So you will have to do it the verbose way ..

    Change the code where you initialize the masonry plugin to

    $(window).load(function(){
        var $container = $('.masonry-cont-area');
    
        $container.imagesLoaded( function(){
            $container.masonry({
                itemSelector : '.single-fg-post',
                isAnimated: true // added this line to make the resizing of the masonry animated and not instant..
            });
    
            // whenever we click on a bullet element
            $('.pager').on('click','.bullet', function(){
                // we use timeout to delay the redrawing of masonry
                // because the slideshow takes sometime to fade out the current slide
                // and slide in the new one..
                // We have to wait until the slideshow has completed its transition before
                // redrawing masonry, so that the masonry plugin can use the new slide's dimensions..
                setTimeout(function(){
                    // we make masonry recalculate the element based on their current state.
                    $container.masonry();
                }, 250); // 250 is the milliseconds of delay between the click to the bullet and the calling of the masonry redraw..
            });
        });
    });
    

    See it live at http://jsfiddle.net/XjVWN/embedded/result/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am confused How to use looping for Json response Array in another Array.
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.