• Resolved ldpr

    (@ldprecords)


    Hi,
    I have added the FiboSearch bar to my desktop menu (“add to menu” option), which works well. However, on the mobile version of my site I would like to have the magnifier icon not inside the dropdown menu but directly on the header. Is there a way to solve this? Thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Kris

    (@c0nst)

    Hi @ldprecords

    Yes, this is possible, but I don’t know which page builder or theme you are using so it’s hard to give you any instructions.

    Regards,
    Kris

    Thread Starter ldpr

    (@ldprecords)

    Sorry, I’m using the Storefront theme and the YellowPencil plug-in for the CSS.

    Could there be a php solution, to put in functions.php or so?

    Plugin Support Kris

    (@c0nst)

    Hi @ldprecords

    • Go to WP Admin -> WooCommerce -> FiboSearch -> Starting (tab) and enable the “Replace them” option.
    • Then go to the WP Admin -> WooCommerce -> FiboSearch -> Search bar (tab) and enable:
      • Layout “Icon on mobile, search bar on desktop”, then set
      • Breakpoint option to 992px. Save,
    • ?Now add the below CSS to your theme (you can use mentioned plugin).
    @media(max-width: 992px) {
    	.storefront-primary-navigation {
    	  position: relative;
    	  right: 32px;
    	}
    	
    	.header-widget-region {
    		position: static;
    	}
    	
    	.header-widget-region .widget {
    		padding: 0;
    	}
    	
    	.header-widget-region .widget.widget_block .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon {
    		position: absolute;
    		top: 85px;
    		right: 15px;
    		z-index: 999;
    	}
    }

    Regards,
    Kris

    Thread Starter ldpr

    (@ldprecords)

    Thank you, but I’m afraid I don’t get it to work. Magnifier visible nowhere.

    Plugin Support Kris

    (@c0nst)

    Hi @ldprecords

    It means that your website must have some modifications that make the above snippet not work. It has been prepared for the default version of the theme you are using. Unfortunately, I don’t know exactly what modifications you made. I can’t check it because I don’t know your website address.

    Regards,
    Kris

    Thread Starter ldpr

    (@ldprecords)

    Sorry, it is https://www.litdeparade.nu
    Thanks

    Plugin Support Kris

    (@c0nst)

    Hi @ldprecords

    I see that your theme uses a page builder, where you can build a header. To add FiboSearch please:

    1. Go to your page builder header editor
    2. Add a [fibosearch]  shortcode element next to the menu icon.
    3. You can customize this shortcode:

    [fibosearch layout="icon"] will add FiboSearch as an icon
    [fibosearch style="solaris"] will add FiboSearch as a search bar
    [fibosearch layout="flex-icon-on-mobile"]will add FiboSearch as an icon for mobile devices and as a search bar for devices with wider screens. The breakpoint can be set in WooCommerce → FiboSearch → Search bar (tab) → Mobile breakpoint (the breakpoint is enabled when Layout is set to ‘Icon on mobile, the search bar on desktop’).
    [fibosearch layout="classic" mobile_overlay="1"] will add FiboSearch as a search bar but will open an overlay on mobile devices.
    [fibosearch layout="icon" class="fibosearch "] will add a CSS class so you’ll be able to style the search bar independently.
    4. Apply Changes and check the result.

    Regards,
    Kris

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Search bar in menu on desktop, magnifier icon on mobile header’ is closed to new replies.