Add "WP-Widget" to "Content Area Modal"

I think this might be one of those too easy to find the answer to but it still escapes me.

How do I get a good old fashioned wordpress widget into the “Content Area Modal”?

Hi there,

You can use the Classic Widget Area shortcode to add your desired widget area to the modal. For example, you can add the code below to the modal:

[x_widget_area sidebar="sidebar-main" ]

That will bring all the widgets assigned to the sidebar main widget area. Now you can add a separate sidebar and add whatever widget you like on that sidebar:

Please consider that if the WIdget uses heavy Javascript code to determine the widget height you may have rendering issues in the modal as the initial view of the modal is hidden and browser calculates the height to 0.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.