Astra_AMP::add_search_field_toggle_attrs( string $input )

Add search slide data attributes.


Description


Parameters

$input

(string) (Required) the data attrs already existing in the nav.


Return

(string)


Source

File: inc/compatibility/class-astra-amp.php

		public function add_search_field_toggle_attrs( $input ) {
			$input .= ' on="tap:AMP.setState( { astraAmpSlideSearchMenuExpanded: astraAmpSlideSearchMenuExpanded } )" ';

			return $input;
		}

User Contributed Notes

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