Tagged: x
-
AuthorPosts
-
April 28, 2016 at 6:49 pm #904930
peterjitg@yahoo.comParticipantHello,
I’m using Ethos. Currently on mobile devices, my search icon in the navbar is hidden inside the mobile menu (sandwich menu). Meaning, users have to click on menu, scroll down and then see search. Is it possible to move the search icon outside the mobile menu and place it somewhere in the navbar perhaps next to the mobile menu icon?
Thanks
April 29, 2016 at 10:17 am #905772
ThaiModeratorHi There,
Please provide us with your website URL so we can take a closer look.
Thank you.
April 29, 2016 at 11:31 am #905879
peterjitg@yahoo.comParticipantThis reply has been marked as private.April 30, 2016 at 3:30 am #906700
Nabeel AModeratorHi again,
Please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
(function($) { $('.x-nav-wrap.mobile .x-menu-item-search').insertAfter('.x-btn-navbar'); })(jQuery);Then add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
a.x-btn-navbar-search { float: right !important; margin: 14px !important; color: #fff !important; }Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
April 30, 2016 at 2:22 pm #907152
peterjitg@yahoo.comParticipantWe’re getting close. The only problem is desktop view. Take a look – https://www.dropbox.com/s/38jqwblhyp1a4p4/1.png?dl=0
Thank you.
May 1, 2016 at 5:44 am #907688
ChristopherModeratorHi there,
Please update JS code to :
(function($) { $('.x-nav-wrap.mobile .x-menu-item-search').insertAfter('.x-btn-navbar').addClass("mobile-search"); })(jQuery);And add this CSS :
@media (min-width:979px){ li.menu-item.x-menu-item.x-menu-item-search.mobile-search { display: none; } }Hope it helps.
May 2, 2016 at 12:02 pm #909397
peterjitg@yahoo.comParticipantThat fixed the desktop view but mobile looks wrong. Here’s a screenshot – https://www.dropbox.com/s/o36xg2mv9im62lt/6.png?dl=0
May 2, 2016 at 6:07 pm #909910
JadeModeratorPlease try to add this code:
@media (max-width: 978px) { li.menu-item.x-menu-item.x-menu-item-search.mobile-search { float: right; padding-top: 15px; padding-right: 10px; } }Hope this helps.
May 3, 2016 at 12:40 pm #911144
peterjitg@yahoo.comParticipantThis reply has been marked as private.May 3, 2016 at 8:44 pm #911712
JadeModeratorHi Peter,
I have added the code and it looks fine on my end. See screenshot attached.

Kindly check again on your end.
May 4, 2016 at 11:25 am #912756
peterjitg@yahoo.comParticipantHi Jade,
Yes, it worked for me too, but like I said before, some things are off. 2 things to be exact:
1. On mobile, I only want to show the icon, without the “Search” word. And I want the icon in white color.
2. Here’s what it looks like on PC (desktop view) – https://www.dropbox.com/s/eg7ki4vz4rwrv1j/7.png?dl=0, the blue search icon next to the logo on the left should not be there at all.-Peter
May 4, 2016 at 4:10 pm #913239
JadeModeratorHi Peter,
Thanks for updating.
#1 Please add this code:
li.menu-item.x-menu-item.x-menu-item-search.mobile-search .x-hidden-desktop { display: none !important; } li.menu-item.x-menu-item.x-menu-item-search.mobile-search i:before { color: #fff; }#2
@media (min-width: 1100px) { li.menu-item.x-menu-item.x-menu-item-search.mobile-search { display: none !important; } }Let us know how it goes.
May 4, 2016 at 4:23 pm #913261
Nabeel AModeratorHi Peter,
Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
@media screen and (max-width: 979px){ a.x-btn-navbar-search .x-hidden-desktop { display: none !important; } a.x-btn-navbar-search .x-icon-search { color: #fff !important; } } @media screen and (min-width: 980px){ .mobile-search .x-btn-navbar-search { display: none !important; } }Let us know how this goes!
May 5, 2016 at 1:41 pm #924632
peterjitg@yahoo.comParticipantThanks guys. I went with Jade’s solution, it worked a little better. We’re almost there, I promise I’m just about done bugging ya 🙂 one last thing…I had to adjust the padding a bit to have the icon centered vertically, problem is, it appears differently on mobile vs desktop (when desktop window size is reduced). Take a look:
Mobile (nicely centered vertically): https://www.dropbox.com/s/iczh9we7sq496bx/9.PNG?dl=0
Desktop (a bit off): https://www.dropbox.com/s/3efx0xvw3ttp2bq/8.png?dl=0I tried adjusting the padding but when I center desktop, mobile becomes off center.
PS: I did clear cache everywhere. Didn’t help.
May 5, 2016 at 10:41 pm #978111
Rue NelModeratorHello There,
Please find and update the code. You can make use of this instead:
@media (max-width: 1040px) li.menu-item.x-menu-item.x-menu-item-search.mobile-search { float: right; padding-top: 15px; padding-right: 24px; }You need to make change with the padding top to align the icon.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-904930 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
