Tagged: x
-
AuthorPosts
-
September 8, 2016 at 1:06 pm #1166770
PascalParticipantHi,
I tried to set the search bar full width and bigger (without border). I was able to make it Wider but unfortunately, making it bigger give me some problem with the search icon.
Here what I did :
Add class to shortcode:
[x_search class=”form-search search-query”]
Added this in CSS
.form-search .search-query, .form-search input[type="search"], { width: 100%; display: block; margin: 0 auto; } .form-search .search-query, .form-search input[type="search"], .search-query { font-size: 30px !important; padding-left: 25px; border: none; }How can I fix it?
Thanks
September 8, 2016 at 1:07 pm #1166779
PascalParticipantThis reply has been marked as private.September 8, 2016 at 1:46 pm #1166854
PascalParticipantHi,
Sorry, Forget my post. I cannot use x-search on this page…
Have a good day!
September 8, 2016 at 9:35 pm #1167458
LelyModeratorCheers Pascal!
Do let us know if you still have questions.
October 5, 2016 at 12:45 pm #1203759
PascalParticipantHi Lely,
Finally, I’ll need to use to the x_search shortcode and I have some little questions.
1) When adding the shortcode, the search icon did not appears.
2) I would like to remove borders, having the search bar full width and bigger (bigger text to).How can I achieve this?
Thank you
October 5, 2016 at 12:46 pm #1203760
PascalParticipantThis reply has been marked as private.October 5, 2016 at 3:10 pm #1203971
Nabeel AModeratorHi again,
Please add the following code in your Child Theme’s style.css file:
.x-search-shortcode:before { content: "\f002"; position: absolute; color: #000; display: inline-block; font-family: FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 30px; margin-left: 10px; margin-top: -2px; } .x-search-shortcode { position: relative !important; } .search-query { width: 100% !important; height: 50px !important; font-size: 30px !important; padding-left: 45px !important; border: none !important; }Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
October 7, 2016 at 12:18 pm #1207039
PascalParticipantHi Nabeel,
It work like a charm 🙂
Thanks!
October 7, 2016 at 8:11 pm #1207515
FriechModeratorWe’re delighted to assist you with this.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1166770 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
