astra_apply_content_background_fullwidth_layouts()
Should Content BG settings apply to Fullwidth Contained/Stretched layout or not?
Description
Do not apply content background to fullwidth layouts in following cases –
- For backward compatibility.
- When site layout is Max-width.
- When site layout is Padded.
Return
(boolean)
Source
File: inc/extras.php
function astra_apply_content_background_fullwidth_layouts() { $astra_site_layout = astra_get_option( 'site-layout' ); $astra_apply_content_background = astra_get_option( 'apply-content-background-fullwidth-layouts', true ); return ( $astra_apply_content_background && 'ast-box-layout' !== $astra_site_layout && 'ast-padded-layout' !== $astra_site_layout ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.7.8 | Introduced. |