Astra_Heading_Colors_Loader::theme_defaults( array $defaults )

Set Options Default Values


Description


Parameters

$defaults

(array) (Required) Astra options default value array.


Return

(array)


Source

File: inc/addons/heading-colors/class-astra-heading-colors-loader.php

	public function theme_defaults( $defaults ) {

		/**
		* Heading Tags <h1> to <h6>
		*/
		$defaults['h1-color'] = '';
		$defaults['h2-color'] = '';
		$defaults['h3-color'] = '';
		$defaults['h4-color'] = '';
		$defaults['h5-color'] = '';
		$defaults['h6-color'] = '';

		// Header <H1>.
		$defaults['font-family-h1']    = 'inherit';
		$defaults['font-weight-h1']    = 'inherit';
		$defaults['text-transform-h1'] = '';
		$defaults['line-height-h1']    = '';

		// Header <H2>.
		$defaults['font-family-h2']    = 'inherit';
		$defaults['font-weight-h2']    = 'inherit';
		$defaults['text-transform-h2'] = '';
		$defaults['line-height-h2']    = '';

		// Header <H3>.
		$defaults['font-family-h3']    = 'inherit';
		$defaults['font-weight-h3']    = 'inherit';
		$defaults['text-transform-h3'] = '';
		$defaults['line-height-h3']    = '';

		// Header <H4>.
		$defaults['font-family-h4']    = 'inherit';
		$defaults['font-weight-h4']    = 'inherit';
		$defaults['text-transform-h4'] = '';
		$defaults['line-height-h4']    = '';

		// Header <H5>.
		$defaults['font-family-h5']    = 'inherit';
		$defaults['font-weight-h5']    = 'inherit';
		$defaults['text-transform-h5'] = '';
		$defaults['line-height-h5']    = '';

		// Header <H6>.
		$defaults['font-family-h6']    = 'inherit';
		$defaults['font-weight-h6']    = 'inherit';
		$defaults['text-transform-h6'] = '';
		$defaults['line-height-h6']    = '';

		/**
		 * Theme button Font Defaults
		 */
		$defaults['font-weight-button']    = 'inherit';
		$defaults['font-family-button']    = 'inherit';
		$defaults['font-size-button']      = array(
			'desktop'      => '',
			'tablet'       => '',
			'mobile'       => '',
			'desktop-unit' => 'px',
			'tablet-unit'  => 'px',
			'mobile-unit'  => 'px',
		);
		$defaults['text-transform-button'] = '';

		/**
		 * Check backward compatibility for button line height.
		 */
		$defaults['theme-btn-line-height']    = 1;
		$defaults['theme-btn-letter-spacing'] = '';

		return $defaults;
	}

Changelog

Changelog
Version Description
2.2.0 Introduced.


User Contributed Notes

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