Astra_Dynamic_CSS::astra_headings_clear_compatibility()

Handle backward compatibility for heading clear:both css in single posts and pages.


Description


Return

(bool) true|false If returns true then set clear:none.


Source

File: inc/class-astra-dynamic-css.php

		public static function astra_headings_clear_compatibility() {
			$astra_settings = get_option( ASTRA_THEME_SETTINGS, array() );
			/**
			 * If `single_posts_pages_heading_clear_none` is set then this user is probably old user
			 * so in that case, we will not convert the "clear:both" to "clear:none" for old users.
			 */
			return apply_filters( 'astra_get_option_single_posts_pages_heading_clear_none', isset( $astra_settings['single_posts_pages_heading_clear_none'] ) ? false : true );
		}

Changelog

Changelog
Version Description
4.6.12 Introduced.


User Contributed Notes

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