Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #687366

    Best Enfold ,

    I would like to show the search icon in the topbar menu. So far, I have a working shortcode which shows both the search icon as the form. However, I would only search icon will show as in the desktop view. By clicking on the search icon should be like in the desktop display the form to be visible.
    Is it possible to shortcode so to adjust that only the Search icon is displayed?
    I am aware that search icon can also be displayed in the mobile view of a CSS script, but I get the search icon in the wrong place at the forefront of the topbar. If possible, I prefer to use a shortcode. Please let me know if this is possible .

    Shortcode function:

    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');

    #688920

    Hi lenvo,

    Sorry for the late reply. I’m having trouble understanding what you are looking to do, could you try to explain a bit further please?

    Best regards,
    Rikard

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