I have a page integrated with a plugin. The plugin is contained within a group which is then contained within another group that has the page as it’s parent. The entire page works responsively quite well, other than this section of the page with the plugin. The height does not adjust as needed to incorporate all of the content’s plugin, to the point where on mobile it is virtually unusable.
Things I have tried:
Turning on “collapse height” for both groups above the plugin
Turning on “collapse height” for every single group on the entire page
Using a floating group
Setting an image with no src and telling it to maintain proportions and setting a min-width
None of these have helped, and I’ve searched these forums for a couple of hours trying the above. Anyone have a better idea?
I do have something working finally, but looking for less of a hack still.
What works:
Create text element in the parent group of the plugin
Don’t have any text, set it to 1px by 1px, and then set a condition when the page width is <X px to add line spacing of whatever height you need. Make sure to place it far to the side as the element could block other elements that need to be clickable.
Set the fixed height of the plugin to be as tall as needed for these smaller screens. In the visual editor, it will make it look like the element is super tall and layered over other things, but because the group above it has a height that is fixed… it will constrain the plugin unless the text element hits the condition to increase line spacing.
Most plugins that are not an actual visual element, but instead just need a plugin element on page to function but is not visible have an option to change the height and width…most of the time best way is to make that plugin element live on the page, put its height at 1 and width at 1…then place that plugin element at the bottom of your page.
So lets say everything is contained in a single group that is supposed to take up the entire page height, just make the page height 1 px taller than the group and put the plugin element at the bottom of the group.
Alternatively you can try it the opposite way and put the plugin element at the top of the page at X Y 0 and then usually it will be under a header element which if its a floating group should not be affected in terms of responsiveness.
Top of the page or Bottom of the page is where I put all my plugin elements.
Popups are loaded to a page as a Bubble default function. You could set the plugin to be visible there. Since you will never open the popup it will not affect any responsiveness of the page at all … and it should serve whatever function is intended to deliver.
Maybe I continue to misunderstand, but again this plug-in is not simply to load functions. It is injecting content into the DOM that must be visible in a specific portion of the page, which is where I have placed the plug-in. Moving the plug-in to an invisible element defeats the purpose of the plug-in.