doAction( “position_area” )

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Actions
  6. doAction( “position_area” )
doAction( "position_area", cssWrap, cssArea, area );
doAction( "position_area_{key}", cssWrap, cssArea, area );

Action to modify the Area position on the screen.

The dynamic part of the filter name is the sanitized Area key. See DiviAreaItem.theKey() for details.

The params cssWrap and cssArea contain a list of attributes that are directly translated to inline CSS styles. Both objects can be modified by the action handler.


(object, required) Position details of the Area wrapper.
(object, required) Position details of the inner Area container.
(DiviAreaItem, required) The Divi Area instance.


Was this article helpful?

Related Articles