-
AuthorPosts
-
October 18, 2016 at 4:12 pm #700736
Hi,
there is no searchbox in my mobile template, i would like it to be in the mobile menu,
is it possible ?
http://www.booksmatter.fr/news/
Thanks,Louis
October 18, 2016 at 4:15 pm #700741Hi louisziegle!
Please refer to my post here – https://kriesi.at/support/topic/search-icon-on-mobile-devices/#post-589759
Best regards,
YigitOctober 18, 2016 at 4:26 pm #700749I should have done something wrong, the new search box is in the mobile menu but when i click on it nothing happen…
October 18, 2016 at 4:36 pm #700753Hi!
Have you added “only-mobile-menu-search” custom class to your search menu item?
If you have, please create a temporary admin login and post it here privately so we can look into it.Best regards,
YigitOctober 18, 2016 at 4:40 pm #700758Yes I did
October 18, 2016 at 8:19 pm #700825Hey!
Login credentials are not working for me. Can you please check them once again? :)
Cheers!
YigitOctober 19, 2016 at 11:00 am #701125Sorry, here it is
October 19, 2016 at 1:48 pm #701287Hi,
I adjusted menu item in Appearance > Menus – http://i.imgur.com/IoAU83g.png. Please review your website now
Best regards,
YigitOctober 19, 2016 at 1:53 pm #701298Ok the search box appears but when i click on search it bring me to the actual homepage, and it doesn’t suggest me any article or page.
Also, do you know why the menu is inverted ?October 21, 2016 at 11:46 pm #702682Hi,
Please check the .htaccess file in the root directory of your installation and post the code on pastebin.com. Or post the FTP details and we’ll check the files.
Best regards,
IsmaelOctober 30, 2016 at 9:22 pm #705893Hi,
here are the informations you need.
ThanksLouis
November 2, 2016 at 2:32 pm #707105Hi,
Please deactivate all plugins one by one to check which one is causing this issue and let us know if this solves the problem.
If that does not help then there might be some corrupted files, so please delete all theme files completely via FTP, before installing a fresh copy from your themeforest account. Here is a short tutorial on how to install the theme via FTP, in case you are not sure how that works:
Best regards,
AndyNovember 6, 2016 at 5:32 pm #708886Hi,
Desactivate the plugins doesn’t work,
I’ll try delete the files you’re talking about but I don’t want to make a mistake.
I have a ChildTheme of enfold Theme, I wrote some code lines on my style.css and some more in the quick css in the backoffice.
Which files do I have to delete exactly ?
Thanks,
LouisNovember 7, 2016 at 1:23 pm #709162Hi,
delete all files inside your Enfold folder and keep all files of your child theme. Replace them with a fresh copy from your themeforest account.
Best regards,
AndyNovember 7, 2016 at 4:01 pm #709317Ok, I replaced all the enfold files as you told me,
the searchbox in mobile is still not working, and even in computer when you click on “more results” it brings you to the homepage.November 8, 2016 at 2:54 pm #709838Hi,
does this error happen as well when you’re using the theme without a child theme? Are you sure you deleted all theme files completely? before replacsing them with a fresh copy from your themeforest account?
Follow this post for search icon on mobile: https://kriesi.at/support/topic/search-icon-disappears-on-mobile-after-enfold-update-3-1-3/
Best regards,
AndyNovember 11, 2016 at 12:41 pm #711103Hi, I wrote the code I found on this post :https://kriesi.at/support/topic/search-icon-disappears-on-mobile-after-enfold-update-3-1-3/
And I desactivated my child theme and there was no search box on mobile.Louis
November 12, 2016 at 8:08 am #711402Hi,
Try to add this code in functions.php:
add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 ); function avia_append_search_nav ( $items, $args ) { if ($args->theme_location == 'avia') { $search_form = get_search_form(false); $items = '<li id="menu-item-searchbox">'.$search_form.'' . $items; } return $items; }
Hope this helps.
Best regards,
NikkoNovember 12, 2016 at 11:36 pm #711495Hi,
the search box is now in the mobile layout, but when you write something in it, it doesn’t suggest you anything.
And on the computer screen mode the search icon has disappeared…November 14, 2016 at 1:06 pm #711919Hi,
this is expected behavior unfortunately. If you want to customize it, then you would need to hire a freelance developer for this job: http://kriesi.at/contact/customization
Also feel free to make a feature request for Kriesi here: https://kriesi.at/support/enfold-feature-requests/
Best regards,
AndyNovember 16, 2016 at 12:21 pm #712864Hi,
I don’t see how it could be an expected behavior. I don’t want to customize it I want it to work…
I paid almost 50$ already for a theme which isn’t working on mobile, and I should pay at least 200$ more to have a searchbox working on mobile ? Maybe if it’s a recurrent error you should fix it, don’t you think ?November 18, 2016 at 12:36 pm #713945Hi,
please follow this thread for search icon on mobile: https://kriesi.at/support/topic/search-button-on-mobile/#post-431521
Best regards,
AndyNovember 20, 2016 at 10:03 pm #714599I don’t think the code in this thread should help my problem, what should it do ? I can’t see the purpose…
Here’s my functions.php code, maybe some lines are not useful and make errors…
<?php
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
function my_theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘enfold-base’, get_template_directory_uri() . ‘/css/base.css’ );
wp_enqueue_style( ‘enfold-custom’, get_template_directory_uri() . ‘/css/custom.css’ );
wp_enqueue_style( ‘enfold-dynamic-css’, get_template_directory_uri() . ‘/css/dynamic-css.css’ );
wp_enqueue_style( ‘enfold-grid’, get_template_directory_uri() . ‘/css/grid.css’ );
wp_enqueue_style( ‘enfold-layout’, get_template_directory_uri() . ‘/css/layout.css’ );
wp_enqueue_style( ‘enfold-print’, get_template_directory_uri() . ‘/css/print.css’ );
wp_enqueue_style( ‘enfold-rtl’, get_template_directory_uri() . ‘/css/rtl.css’ );
}//set builder mode to debug
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}add_filter( ‘avf_ajax_search_function’, ‘avia_init_searchwp’, 10, 4 );
function avia_init_searchwp( $function_name, $search_query, $search_parameters, $defaults ) {
$function_name = class_exists( ‘SearchWP’ ) ? ‘avia_searchwp_search’ : $function_name;
return $function_name;
}function avia_searchwp_search( $search_query, $search_parameters, $defaults ) {
$searchwp = SearchWP::instance();
$engine_name = ‘default’; // you can swap in your Supplemental Search Engine name
parse_str( $search_query, $output );
$search_string = isset( $output[‘s’] ) ? sanitize_text_field( urldecode( $output[‘s’] ) ) : ”;// limit the results to 5
function avia_searchwp_search_num_results() {
return 5;
}
add_filter( ‘searchwp_posts_per_page’, ‘avia_searchwp_search_num_results’ );$posts = $searchwp->search( $engine_name, $search_string );
return $posts;
}add_filter(‘avf_ajax_search_function’, ‘avia_init_relevanssi’, 10, 4);
function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults)
{
$function_name = ‘avia_relevanssi_search’;
return $function_name;
}function avia_relevanssi_search($search_query, $search_parameters, $defaults)
{
global $query;
$tempquery = $query;
if(empty($tempquery)) $tempquery = new WP_Query();$tempquery->query_vars = $search_parameters;
relevanssi_do_query($tempquery);
$posts = $tempquery->posts;return $posts;
}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’);
?>November 22, 2016 at 3:30 pm #715348Hi,
the code will display search icon on mobile, so please follow the instructions and adjust the values as needed.
If you want to make sure no custom code is making problems inside your functions.php, then please remove any custom code one by one and check which one is causing problems.Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.