1. Home
  2. Knowledge Base
  3. Popups for Divi

Popups for Divi

DiviArea.Core.attachArea()

Attach the given area to the DOM and add it to the list of visible Areas.

DiviArea.Data.countVisibleAreas()

Count the currently visible Areas.

doAction( “position_area” )

Action to modify the Area position on the screen.

DiviArea.Utils.getOption()

Fetches the value of a DiviAreaConfig option. Params Returns The option value Notes No notes

applyFilters( “area_trigger_conditions” )

Allows to add custom Area conditions right before an Area is triggered

DiviArea.Data.sanitizeId()

Sanitize an area ID string: Return a ID with leading hash.

doAction( “show_overlay” )

Fired after the background overlay is displayed

DiviAreaItem.hasClass()

Shortcut to `jQuery.hasClass()` on the Area.

DiviAreaItem.addClass()

Shortcut to `jQuery.addClass()` on the Area.

DiviArea.Utils.toPixel()

Converts any CSS unit to pixels - at least any CSS unit that is available in Divi Areas.