Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #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

    #700741

    Hi louisziegle!

    Please refer to my post here – https://kriesi.at/support/topic/search-icon-on-mobile-devices/#post-589759

    Best regards,
    Yigit

    #700749

    I should have done something wrong, the new search box is in the mobile menu but when i click on it nothing happen…

    #700753

    Hi!

    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,
    Yigit

    #700758

    Yes I did

    #700825

    Hey!

    Login credentials are not working for me. Can you please check them once again? :)

    Cheers!
    Yigit

    #701125

    Sorry, here it is

    #701287

    Hi,

    I adjusted menu item in Appearance > Menus – http://i.imgur.com/IoAU83g.png. Please review your website now

    Best regards,
    Yigit

    #701298

    Ok 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 ?

    #702682

    Hi,

    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,
    Ismael

    #705893

    Hi,
    here are the informations you need.
    Thanks

    Louis

    #707105

    Hi,

    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,
    Andy

    #708886

    Hi,
    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,
    Louis

    #709162

    Hi,

    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,
    Andy

    #709317

    Ok, 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.

    #709838

    Hi,

    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,
    Andy

    #711103

    Hi, 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

    #711402

    Hi,

    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,
    Nikko

    #711495

    Hi,
    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…

    #711919

    Hi,

    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,
    Andy

    #712864

    Hi,
    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 ?

    #713945

    Hi,

    please follow this thread for search icon on mobile: https://kriesi.at/support/topic/search-button-on-mobile/#post-431521

    Best regards,
    Andy

    #714599

    I 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’);
    ?>

    #715348

    Hi,

    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

Viewing 24 posts - 1 through 24 (of 24 total)
  • You must be logged in to reply to this topic.