Advance Search Cog

This topic contains 1 reply, has 2 voices, and was last updated by  Paolo 7 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #216063

    Wendy Richardson
    Expired Member
    Post count: 55

    The Cog icon is used for Advanced Search, however that is not intuitive and will not be understood by users. How can we change the icon, or use Test button in that place?

    #216684

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    that is achieved via filter.

    
    
    You can find the function for it in inc/geodirectory-compatibility.php
    
    /**
     * Return the font awesome cog icon HTML.
     *
     * Replace advanced search button with fontawesome cog.
     *
     * @since 1.0.0
     * @return string The font awesome cog sign.
     */
    function sd_gd_adv_search_btn_value()
    {
        return "";
    }
    
    add_filter('gd_adv_search_btn_value', 'sd_gd_adv_search_btn_value', 10);
    

    You can changed the code to return to change icon: http://fontawesome.io/cheatsheet/

    If you comment out the add-filter part, it will remove the icon and say “customize my search”, but you will need to adjust with CSS the form input size or it will not look tidy.

    Thanks

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

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

Open Support Ticket