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 –

  1. For backward compatibility.
  2. When site layout is Max-width.
  3. 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 );
}

Changelog

Changelog
Version Description
3.7.8 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.