Home Forums Basel support forum Show search icon on mobile

Show search icon on mobile

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #39752

    heartit
    Participant

    We need to show the search icon on mobile view next to the shopping cart and menu icons. How can I achieve this? Preferably it would be AJAX search. We are using the DOUBLE HEADER header type.

    #39787

    Artem Temos
    Keymaster

    Hi,

    You can enable search in Theme Settings -> Header -> Other. Check the screenshot https://gyazo.com/d3aa399c7b74232a776072e9ba64e7e4

    Regards

    #39793

    heartit
    Participant

    Hi,

    Thanks for the response, I have this enabled at the moment but no sign on of the search icon?

    Thanks

    #39795

    Artem Temos
    Keymaster

    Please, provide us your admin access so we can login and check this on your side.

    Thank you in advance.

    #39799

    heartit
    Participant

    Ive added credentials to private content, thanks.

    #39801

    Artem Temos
    Keymaster

    Are you able to provide us your FTP access also so we could troubleshoot it?

    #39802

    heartit
    Participant

    FTP Details in private content

    #39803

    Artem Temos
    Keymaster

    Which folder contains your website wordpress installation?

    #39804

    heartit
    Participant

    /monza

    #39807

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    
    add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 );
    
    function basel_custom_header_configuration() {
    
    	return array(
    		'container' => array(
    			'wrapp-header' => array(
    				'logo',
    				'main_nav',
    				'right-column' => array(
    					'wishlist',
    					'search',
    					'cart',
    					'mobile_icon',
    				)
    			)	
    		),
    		'secondary-header' => array(
    			'container' => array(
    				'categories_menu',
    				'search_extended',
    			)
    		)
    	);
    }
    

    And this CSS snippet to the Custom CSS area for desktop devices

    .right-column .search-button {
    	display: none;
    }
    #39816

    heartit
    Participant

    Thanks a bunch thats worked lovely, if i wanted to swap positions of search/menu is this easily done?

    #39821

    Artem Temos
    Keymaster

    Try to add this CSS code for mobile devices

    div.right-column .search-button {
    	display: inline-block;
    	float:none;
    }

Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)