Viewing 29 posts - 1 through 29 (of 29 total)
  • Author
    Posts
  • #542336

    Hi guys,

    I’m trying to add the search icon into my site below 989px width. I found this thread and implemented Yigit’s code but it’s not doing anything:

    https://kriesi.at/support/topic/search-box-in-mobile-responsive-menu

    Thanks

    #542342

    Hi tocal!

    Please refer to Ismael’s post here – https://kriesi.at/support/topic/search-widget-only-in-mobile-view/#post-517247

    Regards,
    Yigit

    #542363

    Hi Yigit. I’ve tried that but it doesn’t seem to have done anything

    #544375

    Yigit, can you help?

    #544376

    Hi!

    Do you mind creating a temporary admin login and posting it here privately? Either one should have worked :)

    Best regards,
    Yigit

    #544379

    No worries.

    #544391

    Hey!

    i added following code to Functions.php file of your child theme

    add_shortcode('avia_search', 'get_search_form');
    
    function add_custom_href_remove(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.only-mo a').removeAttr('href');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_href_remove');

    and following code to Quick CSS in Enfold theme options > General Styling

    @media only screen and (min-width: 990px) {
    .only-mo { display: none !important; }}

    Best regards,
    Yigit

    #544418

    Thanks Yigit.

    Is it not possible to get the normal search magnifying glass icon in the menu next to the hamburger? The search is a bit hard to reach way at the bottom of that long menu.

    Thanks

    #545843

    Thanks Yigit.

    Is it not possible to get the normal search magnifying glass icon in the menu next to the hamburger? The search is a bit hard to reach way at the bottom of that long menu.

    Thanks

    #545846

    Hi!

    Please add following code to Quick CSS

     @media only screen and (max-width: 989px) {
    .main_menu #menu-item-search {
        left: -120px;
        top: -10px;
    }
    .responsive.html_mobile_menu_tablet .main_menu .avia-menu, li#menu-item-search {
        display: block!important;
        top: 20px;
        right: 10px;
    }}

    I removed search bar from your mobile menu.

    Cheers!
    Yigit

    #545854

    Thanks Yigit.

    I can see the magnifying glass now but the placement isn’t correct?

    #546999

    Hi!

    simply play around with left, right and top value, until it fits for you.

    Best regards,
    Andy

    #547010

    I can only see it within widths of 767 + 479px – the positioning is the least of the issues. It falls behind the menu in terms of layering. I just want it to sit inline with the hamburger menu button.

    Alternatively, I could live with it appearing in the responsive menu as Yigit achieved in his message of November 30, 2015 at 11:58 am but I would need it as the first item in the list and not the last… is that possible?

    Thanks guys!

    #548072

    I can only see it within widths of 767 + 479px – the positioning is the least of the issues. It falls behind the menu in terms of layering. I just want it to sit inline with the hamburger menu button.

    Alternatively, I could live with it appearing in the responsive menu as Yigit achieved in his message of November 30, 2015 at 11:58 am but I would need it as the first item in the list and not the last… is that possible?

    Thanks guys!

    #548090

    Hi!

    Sorry for the late reply!

    Yes, it is possible to set search form as the first menu item. I checked login credentials and they are working. Shall i apply the changes once again and set it to be the first menu item now?

    Regards,
    Yigit

    #548117

    Yes please Yigit! Thanks!

    #548123

    Hi!

    Changes are done. Please review your website now :)

    Best regards,
    Yigit

    #563220

    Hi Yigit,

    I think something in the theme update has undone this as it no longer seems to work. Any ideas?

    Thanks

    #564045

    Hi!

    The login details are not working to check this issue. Please provide us with a working login credentials so we can further trouble shoot this.

    Best regards,
    Vinay

    #564103

    Thanks Vinay,

    I have re-instated those details. Apologies.

    #564233

    Hi!

    Ok if you have any questions please feel free to let us know. We are more than happy to help you.

    Best regards,
    Vinay

    #564553

    Hi, yes. The fix Yigit implemented for me is no longer working. I need a search option in the responsive menu as discussed above.

    #565516

    Hey!

    I checked your backend and you are using an old version of the theme, so please upgrade. I checked your child’s functions.php and the code yigit provided you here is not implemented. Please put it inside.

    Regards,
    Andy

    #565612

    Hi Andy. Yigit made all the changes for me. The changes in functions were removed as they were incorrect. The theme is now updated but there is still no responsive search option.

    #565613

    Hey!

    Would you like to add search bar to the top of the mobile menu once again? If so, please provide login credentials and i will apply it for you once
    again :)

    Best regards,
    Yigit

    #565619

    Exactly. Thanks Yigit. Yes.

    What you did last time was perfect but it disappeared. I have re-instated the last set of login credentials.

    #565624

    Hi!

    I applied it once again. Please review your website now :)

    Regards,
    Yigit

    #565630

    Great, thanks Yigit

    #565637

    Hey!

    You are welcome! Let us know if you have any other questions or issues

    Best regards,
    Yigit

Viewing 29 posts - 1 through 29 (of 29 total)
  • The topic ‘Add Search into responsive view’ is closed to new replies.