Tagged: x
-
AuthorPosts
-
March 23, 2016 at 1:02 pm #849844
Amma1ParticipantHi,
I am wanting to add a search field to the top bar and have followed the instructions here: https://community.theme.co/forums/topic/search-bar-in-topbar-inline-with-social-buttons/
However although there is a ‘top-bar-search’ selector now present in the html, it is empty?
I’ve attached a screenshot of what I’m trying to achieve. I have the menu on the left implemented already.
Thanks
March 23, 2016 at 4:23 pm #850131
DarshanaModeratorHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
March 23, 2016 at 6:46 pm #850340
Amma1ParticipantThis reply has been marked as private.March 23, 2016 at 7:59 pm #850421
FriechModeratorHi There,
Thanks, but the credentials above does not work.
Please confirm.
March 24, 2016 at 9:07 am #851058
Amma1ParticipantHi, sorry yes there was a problem with the user I set up. I have redone it, please try again
March 24, 2016 at 12:29 pm #851251
RupokMemberHi there,
Thanks for updating. I can see you have just added an empty div to the topbar. So not sure what you are expecting here.
If you are trying to add the search on topbar then follow this – https://community.theme.co/forums/topic/add-search-bar-to-the-top-bar/#post-736407
Hope this helps.
Cheers!
March 28, 2016 at 11:36 am #855274
Amma1ParticipantThanks very much, it turned out that there was a problem with my child theme which I have resolved now π
I would like to put search (magnifying glass) icon to the right of the search box.
I have tried adding this to the css:
.topbar-search::after{
font-family: ‘FontAwesome’;
content: “\f002”;
color: #f2b724;
}it seems to simply write out the characters ‘f002’ where I would like the search icon to go.. any ideas?
Thanks
March 28, 2016 at 2:45 pm #855516
JadeModeratorHi there,
Please try to add the code in your child theme’s style.css instead.
Hope this helps.
March 28, 2016 at 8:51 pm #855910
Amma1ParticipantThank you π
March 28, 2016 at 9:04 pm #855929
John EzraMemberYouβre most welcome!
April 13, 2016 at 12:13 pm #880424
Amma1ParticipantHi again,
I’m trying to hide the placeholder ‘Search’ text that appears in the search bar by default.
This is what I’ve been trying but it doesn’t seem to work:
/* Search placeholder text */ .topbar-search ::-webkit-input-placeholder, .topbar-search :-moz-placeholder, .topbar-search ::-moz-placeholder, .topbar-search :-ms-input-placeholder, input::-moz-placeholder { display: none !important; opacity: 0 !important; }Any ideas?
April 13, 2016 at 10:02 pm #881309
LelyModeratorHello Amma,
Please update your CSS to this:
input#s::-webkit-input-placeholder, input#s:-moz-placeholder, input#s::-moz-placeholder, input#s:-ms-input-placeholder, { opacity: 0 !important; }Hope this helps.
April 15, 2016 at 8:47 am #884293
Amma1ParticipantHi,
no this still results in a faded ‘search’ text being present. I thought perhaps it was a text shadow so I se that to ‘none !important’ too but there is still text there π
What else could I try?
April 15, 2016 at 9:31 pm #885148
FriechModeratorHi There,
You can add this under Custom > Global JavaScript in the Customizer.
(function($) { $(".search-query").removeAttr("placeholder"); })(jQuery);Hope it helps, Cheers!
April 17, 2016 at 7:36 pm #887279
Amma1ParticipantWonderful thank you!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-849844 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
