layers_before_slider_widget_inner

Last Updated:
Back to Main Index

Outputs your custom code above the slide wrapper but inside the slider widget container. Visual elements inserted with this hook will be affected by the user’s Layout, Widget Background and Padding choices.

layers_before_slider_widget_inner

Location: core/widgets/modules/slider.php

Code output appears after the widget wrapper

Code output appears before the individual slide wrapper

Usage:

This hook is useful if you want to add a static element within the slide widget that appears above the slides such as the output of a Heading field or similar. Note that because the slider height controls are determined by the user, this hook requires delicate styling and testing to be implemented correctly.