Home Forums WoodMart support forum Search bar don´t work

Search bar don´t work

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #91001

    simonzapatae
    Participant

    I´m using the woodmart header electronics, and the search bar in the Sticky header clone don’t work. What can I do to make it work properly?. When I hit the search button, nothing happens… it just does not work in the Sticky menu.

    Attachments:
    You must be logged in to view attached files.
    #91009

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    Please deactivate the plugins not related to the theme and provide your site admin access.

    Best Regards

    #91014

    simonzapatae
    Participant

    I only have yoast seo, loco translate and wp super cache plugins. But this problem is before the activation of this plugins

    #91039

    Artem Temos
    Keymaster

    Hi,

    It is a problem in our theme and the search icon shouldn’t be located in the sticky header if you don’t use Full screen search widget in your real header.

    Try to add the following PHP code snippet to the child theme functions.php file to remove that unnecessary icon from the sticky header

    add_filter( 'woodmart_header_clone_template', function() {
    	return '
    		<div class="whb-sticky-header whb-clone whb-main-header">
    			<div class="<%cloneClass%>">
    				<div class="container">
    					<div class="whb-flex-row whb-general-header-inner">
    						<div class="whb-column whb-col-left whb-visible-lg">
    							<%.site-logo%>
    						</div>
    						<div class="whb-column whb-col-center whb-visible-lg">
    							<%.main-nav%>
    						</div>
    						<div class="whb-column whb-col-right whb-visible-lg">
    							<%.woodmart-header-links%>
    							<%.search-button:not(.mobile-search-icon)%>
    							<%.woodmart-wishlist-info-widget%>
    							<%.woodmart-shopping-cart%>
    							<%.full-screen-burger-icon%>
    						</div>
    						<%.whb-mobile-left%>
    						<%.whb-mobile-center%>
    						<%.whb-mobile-right%>
    					</div>
    				</div>
    			</div>
    		</div>
    	';
    } );

    Regards

    #91043

    simonzapatae
    Participant

    Thank you, it’s done.
    Good service

    #91053

    Artem Temos
    Keymaster

    Great, you are welcome.

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