Change the cog logo to text

This topic contains 23 replies, has 6 voices, and was last updated by  Kor 7 years, 2 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #363603

    Jonny S
    Expired Member
    Post count: 83

    Hi

    I would like to change the cog button to the word filter I would also like the filter button to be displayed before the search button. How do I achieve this?

    Thanks

    #363608

    Guust
    Moderator
    Post count: 29970
    #363643

    Jonny S
    Expired Member
    Post count: 83

    Thanks

    Where is the inc/geodirectory-compatibility.php file located? Can I access this through WordPress dashboard?

    #363665

    Kor
    Moderator
    Post count: 16516

    Hi Jonny,

    You can apply this code using the Code Snippets plugin https://wordpress.org/plugins/code-snippets/ . Example

    
    
    function sd_gd_adv_search_btn_value()
    {
       return '<i class="fa fa-user" aria-hidden="true"></i>';
    }
    
    add_filter('gd_adv_search_btn_value', 'sd_gd_adv_search_btn_value', 10);

    You can change the code fontawesome code: http://fontawesome.io/cheatsheet/

    #363755

    Paolo
    Site Admin
    Post count: 31206

    If you want to change it for text:

    
    
    
    function sd_gd_adv_search_btn_value()
    {
       return 'YOU TEXT HERE';
    }
    
    add_filter('gd_adv_search_btn_value', 'sd_gd_adv_search_btn_value', 10

    Thanks

    #363791

    Jonny S
    Expired Member
    Post count: 83

    Hi, thanks for the suggestions. Kor’s code works however paolo your code doesn’t seem to change anything. Any idea why it’s not working?

    Cheers

    #363807

    Kor
    Moderator
    Post count: 16516

    Hi Jonny,

    There is a missing close bracket on Paolo’s code. Try this code below.

    
    
    function sd_gd_adv_search_btn_value()
    {
       return 'YOUR TEXT HERE';
    }
    
    add_filter('gd_adv_search_btn_value', 'sd_gd_adv_search_btn_value', 10);
    #363820

    Jonny S
    Expired Member
    Post count: 83

    If I replace the “YOUR TEXT HERE” with “Customise My Search” the code doesn’t work and the button still shows the cog logo but if I don’t change the “YOUR TEXT HERE” the code works. Any ideas?

    #363823

    Guust
    Moderator
    Post count: 29970

    Please post your URL and WP admin details in a private reply so we can check the code you are trying.
    Thanks

    #363824

    Kor
    Moderator
    Post count: 16516

    Hi jonny,

    That’s strange. Could you please share WP Temp admin access to your Website?

    Thanks

    #363825

    Jonny S
    Expired Member
    Post count: 83
    This reply has been marked as private.
    #363826

    Jonny S
    Expired Member
    Post count: 83

    I added this into the code snippets plugin

    #363827

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #363828

    Guust
    Moderator
    Post count: 29970

    Every listing needs to be in at least one category, or the links will not work.

    Thanks

    #363897

    Jonny S
    Expired Member
    Post count: 83

    Hi, this is only changing the button on the places page. How do I change it on other pages types?

Viewing 15 posts - 1 through 15 (of 24 total)

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

Open Support Ticket