have reset location button

This topic contains 9 replies, has 3 voices, and was last updated by  mrchocolate 9 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #42835

    mrchocolate
    Expired Member
    Post count: 62

    Is it possible to have a Button (Maybe on the full width search bar) to reset the location selected?

    #42838

    Guust
    Moderator
    Post count: 29970

    Provide a link to /location/ and style with CSS

    #42841

    mrchocolate
    Expired Member
    Post count: 62

    Is there an easy way to add it to the search bar next to search

    #42842

    mrchocolate
    Expired Member
    Post count: 62

    I mean on the advanced search

    #42907

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    there are several hooks to add extra elements in the search form. Here the list:

    https://wpgeodirectory.com/docs/codex/geodirectory_templates/listing-filter-form-php/

    You could use the action geodir_after_search_button https://wpgeodirectory.com/docs/codex/geodirectory_actions/geodir_after_search_button/

    Following is a quick example of how to add html after it:

    
    
    add_action('geodir_after_search_button','my_html_after_search_button',10);
    function my_html_after_search_button(){
    echo "<p>Hello World</p>";
    }
    

    You need to copy that code into your theme’s functions.php file.

    Thanks

    #42940

    mrchocolate
    Expired Member
    Post count: 62

    Where in that can I link to a page

    #42942

    Paolo
    Site Admin
    Post count: 31211

    Instead of

    <p>Hello World</p>

    Change to

    <a href='/location/'>Reset Location</a>

    Thanks

    #42951

    mrchocolate
    Expired Member
    Post count: 62

    zero in /home/largefam/public_html/largefamilyaccommodation.com/wp-content/themes/GeoDirectory_framework/functions.php on line 559

    That is what comes up under the search box twice and came up with a similar thing for the functions.php on the GDF modern theme

    #42980

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    please provide a link and wp admin credentials and I will see what’s wrong. I just tested the function again and it works flawlessly on my test website.

    Thanks

    #43211

    mrchocolate
    Expired Member
    Post count: 62
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 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