Support » Plugin: Smash Balloon Social Photo Feed » afterLoad API Method?

  • Resolved 7Jayme

    (@7jayme)


    Hi, I am trying recalculate height of each item/photo for fit them to 100% window height frame.

    But it seems that my JS is loaded before full load of feed so it rewrites back my changes.

    Is there any method/event which triggers my code after load? Or any setting of photo height in admin?

    Thanks for advice!

    • This topic was modified 5 years, 3 months ago by 7Jayme.
    • This topic was modified 5 years, 3 months ago by 7Jayme.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey 7Jayme.

    We have an area for just this kind of thing on the “Customize” tab “Custom Javascript” area. Code placed here will fire after the feed is done loading and after new posts are done loading after clicking “Load More”.

    Thread Starter 7Jayme

    (@7jayme)

    Thanks for reply, Craig!

    I’ve tried this, but it seems not working properly too. How should I use jQuery there? jQuery() or $() ?

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey again,

    Either one should work fine. I was able to get this snippet to change the height of each image saved in that area:

    jQuery(‘#sb_instagram .sbi_photo’).each(function() {
    jQuery(this).css(‘height’,’222px’);
    });

    Can you share the code you’re using? Also if you can share the page and tell me a bit more about what you’re trying to do, I can take a quick crack at it!

    Thread Starter 7Jayme

    (@7jayme)

    I should not work in half-sleep mood :/ There has been some mistypes in code. Custom JS field work properly!

    SOLVED!

    Thanks again for advices and your time 🙂

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Awesome! No problem. Let me know if you ever need anything else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘afterLoad API Method?’ is closed to new replies.