Change cog and text in dropdown filter for search

This topic contains 7 replies, has 3 voices, and was last updated by  Kor 7 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #368687

    Tony Agee
    Expired Member
    Post count: 32

    I would like to know where I can modify the inc/geodirectory-compatibility.php file and if it is editable in the plugin editor on the backend? Can I get the proper code to use dropdown arrow instead of cog and have text say “Advanced Search” Thank you.

    #368691

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Tony,

    You can use this code snippet, i suggest adding a pluign called “code snippets” to add it

    
    
    add_filter('gd_adv_search_btn_value','_my_adv_search_button');
    function _my_adv_search_button($btn){
    
    	$btn = '';
    
    	return $btn;
    }

    And you can get the codes from here: http://fontawesome.io/cheatsheet/

    Thanks,

    Stiofan

    #368693

    Tony Agee
    Expired Member
    Post count: 32

    Thank you for the response. I am not comfortable with code snippets and would rather place the replacement php code in the respective file if you will give that to me. Thank you.

    #368695

    Kor
    Moderator
    Post count: 16516

    Hi Tony,

    You can try inserting the code into the functions.php file of your theme. Give it a try and let us know how it goes.

    Thanks!

    #368856

    Tony Agee
    Expired Member
    Post count: 32

    After playing around with it, I finally got it the way I want it except for one thing. I would like to put some text on my advanced filter button along with the down arrow. I would also like the text above the arrow and centered or to the left of it and a space between text and arrow. Thank you. Your support has been great so far.

    #368857

    Kor
    Moderator
    Post count: 16516

    Hi Tony,

    Replace the code with the below and see if it’s what you’re looking for.

    
    
    add_filter('gd_adv_search_btn_value','_my_adv_search_button');
    function _my_adv_search_button($btn){
    
    	$btn = '<div class="search-text">My Text</div><span></span>';
    
    	return $btn;
    }
    #368894

    Tony Agee
    Expired Member
    Post count: 32

    Perfect…Thank you

    #368910

    Kor
    Moderator
    Post count: 16516

    Glad that worked for you. Let us know if you need anything else.

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

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

Open Support Ticket