changing filter to fa-cog
This topic contains 12 replies, has 5 voices, and was last updated by Patrik 7 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: customize, gear, search bar
-
AuthorPosts
-
July 27, 2018 at 6:04 pm #440030
Hello everyone, When I added a new filter to my search it came with customize my search”and i wanted a gear, so how can I change that to fa-cog?
July 27, 2018 at 6:25 pm #440033Hello,
the icon decorating the advanced search button is ‘fa-cog’
I a not sure I understand what you are asking.
How can we help?
July 27, 2018 at 11:52 pm #440056Please have a look at https://wpgeodirectory.com/docs/common-styling-examples/#cog
To understand your situation better, please post your URL. You can do that in a private reply if you like.
Thanks
July 28, 2018 at 3:22 pm #440136Hello, thank for the answers and sorry for the bad way that I expressed myself. I was trying to say that when I activate the search filter it came with “customize my search” text (like in image), and I wanted the fa-cog… On the docs I found only how I change the fa-cog to text
July 28, 2018 at 3:42 pm #440137Hi Anderson,
Thanks for your reply. You can just use the custom CSS code below if you wish to have the fa-cog and the texts together. Insert into GD > Design > Scripts > Custom Style CSS
.fa-cog:after {content: " Customize My Search";}July 28, 2018 at 9:22 pm #440185Hi Kor, my question is exactly that, I don’t want text and it came without fa-cog by default
July 28, 2018 at 11:18 pm #440189To understand your situation better, please post your URL and WP admin details. You can do that in a private reply if you like.
Thanks
July 28, 2018 at 11:31 pm #440191This reply has been marked as private.July 29, 2018 at 12:18 am #440192Something is stripping some code it seems, possibly a plugin conflict.
The class that shows the cog wheel by default, gets stripped from the page code.Try turning off some of your translation plugins, and string locator plugin, they may be the problem:
https://wpgeodirectory.com/docs/known-issues/I’ll get a developer to have a closer look after the weekend.
Thanks
July 29, 2018 at 3:47 pm #440250Hello, thanks for the answers, I have tryed to hardcode the fa-cog and others fontawesome icons, but any of them works, now I have no clue to what can we do
July 29, 2018 at 10:36 pm #440268I have tryed to hardcode the fa-cog and others fontawesome icons, but any of them works
Maybe that is the problem? The search icon works next to the Custom Search button, so FontAwesome is working.
Restore any hardcoding you done to the original file. The Cog wheel should come back.If not, turn off all non-geodirectory plugins temporarily [and also any other customisations to the Supreme theme].
Then the cog should show.
Then turn plugins one by one, until you find the conflict.July 31, 2018 at 12:52 am #440492I explain myself in a bad way, I tryed to hardcode when I noticed that it wasn’t working, and really its only on that space that font-awesome is not working…
July 31, 2018 at 5:31 am #440511Hi Anderson,
Please try the following code in your current theme’s functions.php file and let us know if it works for you or not:
add_filter('gd_adv_search_btn_value', 'gd_adv_search_btn_value_cb'); function gd_adv_search_btn_value_cb(){ return '<i class="fa fa-cog" aria-hidden="true"></i>'; }Also, remove the changes you have made in core files before trying this.
Regards,
Patrik -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket