Search options

Hello,

I struggle again, this time with the search function. In the elements, there is a search field, which works perfectly. I have problems with positioning.

I try to have it in the header for mobiles, but if I try to change its dimensions / width from Inline to custom, not to be disproportingly wide on mobiles, it will also shift search results, so It can't be seen normally on mobiles.

The same issue is when I try to change the position of the search field, because I want it to be centered in my wrap, but the left side of the search results is cropped..

In the image below, you can see only the position of the element and with "inline" width where the search results are visible whole, without the left side cropped and missing:


Here you can see the left side missing when I changed the inline to 200px so the field isn't too wide for mobiles

And same will happen when I want to change the positioning of the search field.




you can see here:

Login access to dashboard is the same I sent you few weeks ago with different problem I had.


Thank you very much for help.

Regards

Martin

Comments

  • Hi,

    Please try the following CSS code:

    @media only screen and (max-width:767px){
     .mfn-header-tmpl .column_header_search .mfn-live-search-box{
       right: unset!important;
       left: 50%!important;
       min-width: 250px!important;
       transform: translateX(-50%)!important;
     }
    }
    

    Put it in Betheme -> Theme options -> Custom CSS & JS -> CSS.


    Best regards

  • Awesome, it works. Thanks alot.


    so the point here is the transform option ? This one I see in the advanced settings in the search element in builder. So if it is, I know how to handle if encounter similar problem next time :)

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.