changing filter to fa-cog

This topic contains 12 replies, has 5 voices, and was last updated by  Patrik 6 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #440030

    Anderson De Nardi
    Expired Member
    Post count: 11

    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?

    #440033

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    the icon decorating the advanced search button is ‘fa-cog’

    I a not sure I understand what you are asking.

    How can we help?

    #440056

    Guust
    Moderator
    Post count: 29970

    Please 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

    #440136

    Anderson De Nardi
    Expired Member
    Post count: 11

    Hello, 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

    1it came that way

    #440137

    Kor
    Moderator
    Post count: 16516

    Hi 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";}
    #440185

    Anderson De Nardi
    Expired Member
    Post count: 11

    Hi Kor, my question is exactly that, I don’t want text and it came without fa-cog by default

    #440189

    Guust
    Moderator
    Post count: 29970

    To understand your situation better, please post your URL and WP admin details. You can do that in a private reply if you like.

    Thanks

    #440191

    Anderson De Nardi
    Expired Member
    Post count: 11
    This reply has been marked as private.
    #440192

    Guust
    Moderator
    Post count: 29970

    Something 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

    #440250

    Anderson De Nardi
    Expired Member
    Post count: 11

    Hello, 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

    #440268

    Guust
    Moderator
    Post count: 29970

    I 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.

    #440492

    Anderson De Nardi
    Expired Member
    Post count: 11

    I 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…

    #440511

    Patrik
    Moderator
    Post count: 1971

    Hi 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

Viewing 13 posts - 1 through 13 (of 13 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount