• Resolved nicolab2

    (@nicolab2)


    Hello,

    I wanted to include a Grid created with this plug-in
    https://theme-one.com/the-grid/
    inside an accordion.

    So I put the shortcode of my grid in the Accordion content, and it works well with the choice “First accordion open” on page load.

    If I choose “Hide/close all accordions” on page load however (and that’s the whole point of doing this!), when I open it manually, it is empty.

    Is there any explanation to this and a way to solve it?

    Thank you
    Nicolas

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @nicolab2,

    Please share your website url so we can solve your issue.

    Thank you

    Thread Starter nicolab2

    (@nicolab2)

    Hello,

    Thank you, but the site is under development, it is not live.

    I can give you an access if you write me directly.

    Best regards,
    Nicolas

    Thread Starter nicolab2

    (@nicolab2)

    Hello,

    I shared with you a admin login on your private e-mail 10 days ago ; did you get a chance to look into this problem?

    Thank you
    Nicolas

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @nicolab2 Please don’t offer to send or post logon credentials on these forums:

    https://www.ads-software.com/support/guidelines#the-bad-stuff

    You can contact the author on their own site and, once there, the discussion is between the two of you. However, it is not OK to enter or send site credentials on these forums. We don’t want to encourage others (who are less reputable) to do similar things. It’s a fine line, but one that we need to enforce. Thanks for your cooperation.

    Thread Starter nicolab2

    (@nicolab2)

    Thank you for your message, Steven. I did not send the login on the forum, though: I sent it directly in an e-mail to @lokeshkalosiya who appears to be part of the development team of the plug-in.

    @lokeshkalosiya, are you there?

    best,
    nico

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Again, do not ask if you can do so on the forums.

    Thread Starter nicolab2

    (@nicolab2)

    Ok, got you – sorry for the misunderstanding.

    @lokeshkalosiya ?

    Nicolas

    Thread Starter nicolab2

    (@nicolab2)

    So it seems that the Grid mosaic is simply not triggered when you open the accordion after it was loaded in a closed status. Images are loaded, but they are given a size of 0px because the accordion is closed.

    If I open the accordion, it is empty , but if, after doing that, I resize the navigator window, they appear, as it forces The Grid to calculate new sizes.

    Does that give any clue as a possible solution?

    Thread Starter nicolab2

    (@nicolab2)

    Well, let me post the solution myself, as this seems to be a recurring issue for many people with different accordion & mosaic plug ins, if I judge by the many forums where this question is asked.

    I managed by adding the following JS code to the Grid :

    function makeGridAppear() {
    jQuery(window).resize();
    }
    jQuery( “#wpsm_accordion_25761” ).on( “click”, makeGridAppear );

    It uses jQuery to force resizing when the accordion is being opened (referencing it through the div ID).

    Enjoy if you have the same problem.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Accordion & TheGrid’ is closed to new replies.