 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
December 20, 2016 at 4:29 pm #726634Is it possible to disable the ajax search function in the header? 
 And instead use the built in search functionality?December 20, 2016 at 4:31 pm #726636Hey! Yes, please go to Enfold theme options > Header > Extra Elements and uncheck “Append search icon to main menu”. Then add following code to Functions.php file in Appearance > Editor add_shortcode('avia_search', 'get_search_form'); function add_custom_tooltip(){ ?> <script> jQuery(window).load(function(){ jQuery('.only-mobile-menu-search a').removeAttr('href'); }); </script> <?php } add_action('wp_footer', 'add_custom_tooltip');then go to Appearance > Menus and add a new Custom Link with # for URL and [avia_search] for navigation field Cheers! 
 Yigit- 
		This reply was modified 8 years, 10 months ago by Yigit. 
 April 6, 2017 at 4:31 pm #773305How to disable ajax? Because i did, now ajax is working still. April 7, 2017 at 1:00 pm #773927Hi, Please go to Enfold theme options > Header > Extra Elements and uncheck “Append search icon to main menu” Best regards, 
 YigitApril 7, 2017 at 1:04 pm #773930Dear Yigit, My aim to do the header like this: http://imgur.com/a/6DdmP 
 I unchecked, when i try search preloading th emagnify and working like enfold search.Ty, d. April 8, 2017 at 5:54 am #774275Hi, May you share with us your website link and the WP credentials, please? Best regards, 
 John TorvikApril 9, 2017 at 12:26 pm #774906Hi John. Here i did a test: 
 http://studiobest.hu/test/wp-admin/
 demo
 demo123
 – Elements and unchecked “Append search icon to main menu
 Pls check it,
 ty,
 d.- 
		This reply was modified 8 years, 6 months ago by dwebprojects. 
 April 11, 2017 at 6:26 pm #776237Hi dwebprojects, Well, you can give the text input in that form a different ID and write your custom logic where you will have to handle that form submit. Or give the form the class of “av_disable_ajax_search” and you will have to handle submit yourself. If you need further assistance please let us know. Best regards, 
 VictoriaApril 19, 2017 at 10:24 am #779870d. - 
		This reply was modified 8 years, 6 months ago by dwebprojects. 
 April 20, 2017 at 5:00 am #780272April 20, 2017 at 3:18 pm #780564Dear Sir, How can i do to have an search result page with only postgrid with images and titles from only like fashion category? Ty, d. April 20, 2017 at 4:00 pm #780596Hi, Please refer to this post – Please refer to this post – https://kriesi.at/support/topic/grid-style-search-results-with-sidebar/ Best regards, 
 YigitApril 20, 2017 at 4:06 pm #780610Sorry, where to put and which code? Ty, d. April 20, 2017 at 10:29 pm #780845Hi, It should be on search.php file. Hope this helps. Best regards, 
 NikkoMay 10, 2017 at 5:23 pm #791226Hey! I tried to hide the icon search and insert de Search Field too. 
 The code is okey, but i cant see the search field beacuse is below the Slide. How could i fix it?May 10, 2017 at 5:26 pm #791227Sorry, this is the site link laboratorioseurolab.com May 12, 2017 at 7:28 am #792108Hi, Please add the following css codes: #top #searchform>div { opacity: 1 !important; display: block !important; bottom: 68px; } #top #searchform .ajax_search_response { background: #ffffff; }Best regards, 
 IsmaelMay 12, 2017 at 9:19 pm #792501Genius Ismael! Thank you so much for your help! May 12, 2017 at 9:26 pm #792503Isamel! 
 I am sorry i thought it was ok, but click on the results are not working.
 I leave you an user in private content.May 15, 2017 at 5:54 am #793155Hi, What is the actual code that used to display the search field? Please remove the modification then add this code in the functions.php file: add_filter( 'wp_nav_menu_items', 'avia_append_search_side_nav', 10, 2 ); function avia_append_search_side_nav( $items, $args ) { if (is_object($args) && $args->theme_location == 'avia') { global $avia_config; ob_start(); get_search_form(); $form = ob_get_clean(); $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown">'.$form.' </li>'; } return $items; }In the Quick CSS field, use this: #top .menu-item #searchform { top: 26px; position: relative; } #top #searchform > div { opacity: 1 !important; display: block !important; }Best regards, 
 IsmaelMay 15, 2017 at 2:57 pm #793348Hi Ismael! The code you send me recently (function.php) doesn’t work, and breaks all the site. I replaced for the previus code. 
 And this is the previus code that i’ve added on function.php:add_shortcode(‘avia_search’, ‘get_search_form’); 
 function add_custom_tooltip(){
 ?>
 <script>
 jQuery(window).load(function(){
 jQuery(‘.only-mobile-menu-search a’).removeAttr(‘href’);
 });
 </script>
 <?php
 }
 add_action(‘wp_footer’, ‘add_custom_tooltip’);May 15, 2017 at 3:16 pm #793359Ismael! sorry. 
 I forgot to take out a short code in the Quick Css, that was the problem i think.
 It’s working perfect now!Thanks! May 16, 2017 at 5:05 am #793696
- 
		This reply was modified 8 years, 10 months ago by 
- 
		AuthorPosts
- You must be logged in to reply to this topic.
