-
AuthorPosts
-
February 24, 2021 at 1:19 pm #1283383
Hi,
I want to add the code from a plugin in the header of Enfold. See the screenshot here https://ibb.co/ScGWwLD
How could I do this easily? Using a header widget? Or what file would I need to add the plugin short code to? I want the search box to search for products to float to the center when it is viewed on a tablet or phone.
Thanks!
February 26, 2021 at 4:49 am #1283785Hey natas442,
Please try adding a widget area to the header: https://kriesi.at/documentation/enfold/header/#adding-a-header-widget-area. We can help you out with styling if we can see the actual element on your site.
Best regards,
RikardFebruary 26, 2021 at 4:29 pm #1283889I managed to figure it out, however I do need CSS styling help. The search box looks good on a desktop. However on mobile devices (tablet and phone) it looks horrible. The search box or widget looks too thin and seems to span the entire width of the mobile devices screen. Can styling be done to if a mobile device is used? Thanks very much
February 26, 2021 at 6:46 pm #1283928Oh, another thing I noticed is that with the header widget inserted, the page titles are not visible. Do you know how I can get the page titles visible again:?
https://www.mailboxesbybathx.com/product-category/replacement-mailboxes/1400/
February 28, 2021 at 7:04 am #1284205Hi,
Thanks for the update. Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 767px) { #top #header .widget { position: absolute; top: 100px; z-index: 99; left: 0; } #ajaxsearchpro1_1 { width: 100%; } }
Best regards,
RikardFebruary 28, 2021 at 10:20 am #1284211Thanks! That kinda worked. However it seems that the hambuger menu is now, skewed.
http://www.responsinator.com/?url=www.mailboxesbybathx.com
Is there a way to make the search box (Header widget) not go 100% on mobile devices?
February 28, 2021 at 10:39 am #1284214February 28, 2021 at 10:40 am #1284215Sorry wrong image in previous post
The menu is too tall now. Indicated by the red lines https://ibb.co/jgtM9NN
Thanks
March 1, 2021 at 12:17 pm #1284379Hi,
Please try this CSS as well:
@media only screen and (max-width: 767px) { #top #header .main_menu { background: transparent; } }
I can’t reproduce the results which are shown in your screenshot on your actual site, please try loading it in an incognito or private browser window to see if that helps.
Best regards,
RikardMarch 1, 2021 at 12:21 pm #1284381Almost there!
http://www.responsinator.com/?url=www.mailboxesbybathx.com
If you check the above site, all are good! Except the ipad portrait mode. That seems broken.
http://www.responsinator.com/?url=http://www.mailboxesbybathx.com&device=ipad&orientation=portraitMarch 2, 2021 at 2:00 pm #1284742Hi,
Your logo stretches across the screen on tablet sizes, and this CSS seems to be causing that:
.logo a img { width: 710px; height: 94px; }
Did you add that? If so then please try to adjust it in a media query:
@media only screen and (min-width: 768px) and (max-width: 1024px) { .logo a img { width: 710px; height: 94px; } }
Otherwise the burger menu won’t have any room on the right hand side of the screen.
Best regards,
RikardMarch 2, 2021 at 2:14 pm #1284749Yea, Thanks! I got the CSS straighten out. I think I had too many CSS snippets in the code. Now its perfect! Thanks for your support!
March 2, 2021 at 4:03 pm #1284793Hi natas442,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.