Astra_Ext_Sticky_Header_Markup::customizer_save()

Add Styles Callback


Description


Source

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

		public function customizer_save() {

			/* Generate Sticky Header Logo */
			$sticky_logo = astra_get_option( 'sticky-header-logo' );

			if ( '' !== $sticky_logo ) {
				add_filter( 'intermediate_image_sizes_advanced', array( $this, 'sticky_logo_image_sizes' ), 10, 2 );
				$sticky_logo_id = attachment_url_to_postid( $sticky_logo );
				Astra_Customizer::generate_logo_by_width( $sticky_logo_id );
			}
		}

User Contributed Notes

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