DiviArea.show(area, event)

Open the Area with the given ID. When an animation is defined for the area, the animation will start to play.

Popup Areas: When the Popup is already open, it will be brought to the front. This function also dims the background and disabled document scrolling, by calling DiviArea.showOverlay().


(string|jQuery|DiviAreaItem, required) Identifies the Area to display.
Either a string with the Area-ID (the #-prefix is optional), the Areas jQuery element, or the DiviAreaItem.
(Event|jQuery, required) Required for Hover Areas.
It specifies the element against which the Hover Area is positioned. Ignored for any other Area type.


The function returns true, if the area exists and was displayed. When the return value is false, a debug output describes the reason.


// The "#" prefix is optional. Following statements are identical:
// The <id> param can also be the jQuery element of the Area:
var demo = DiviArea.register('#sample');
// Display a Hover Area relative to an <a> tag (Divi Areas Pro only):
jQuery('a').on('mouseenter', function(event) {
    DiviArea.show('#hover-area', event);


This function was previously named DiviPopup.openPopup().


When the Area is not displayed please check your JavaScript console for errors. You might see the following message: "[DiviAreas] Could not find an area with the ID: some-popup". This error can happen, when you call the function too early, or when you misspell the Area ID.

This function can be called on/after the init_area-action. The earliest possible implementation looks like this:

// Show the sample-area as soon as the JS API is ready:
DiviArea.addAction('init_area_sample', function(area) {

If you are certain that the JS API is ready and still get the error, please check the spelling of the Area ID and make sure that the Area actually exists on the current page. You can either use DiviArea.getArea('id') or DIviArea.listAreas() to find out, if an Area exists or not:

// Check, if the given Area exists:
var myPopup = DiviArea.getArea('#sample');
if (myPopup) {
} else {
    console.log('Could not find the #sample popup. List of available Areas:');
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.