Astra_Ext_Transparent_Header_Markup::customizer_save()

Add Styles Callback


Description


Source

File: inc/addons/transparent-header/classes/class-astra-ext-transparent-header-markup.php

		public function customizer_save() {

			/* Generate Transparent Header Logo */
			$trans_logo = astra_get_option( 'transparent-header-logo' );

			if ( '' !== $trans_logo ) {
				add_filter( 'intermediate_image_sizes_advanced', array( $this, 'transparent_logo_image_sizes' ), 10, 2 );
				$trans_logo_id = attachment_url_to_postid( $trans_logo );
				Astra_Customizer::generate_logo_by_width( $trans_logo_id );
				remove_filter( 'intermediate_image_sizes_advanced', array( $this, 'transparent_logo_image_sizes' ), 10 );
			}
		}


User Contributed Notes

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