Place not added

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

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

Open Support Ticket
  • Author
    Posts
  • #62132

    wansell
    Expired Member
    Post count: 11

    Hello Support,

    Is it possible to add a link/button to the top search results page or category listing results page that says:

    “Your Place not listed… Please click here to add your place now”

    If done a quick search and can’t find anything, I think my search result might have been a bit wide.

    Thanks
    Wayne

    #62163

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please add this code to your theme functions.php file:

    
    
    
    add_action('geodir_before_listing_listview', 'my_call_to_action');
    
    function my_call_to_action() { 
    
    if ( geodir_is_page(listing) || geodir_is_page(search) ) {
    echo 'Your Place not listed? Please <a href="http://wpgeo.directory/add-listing/?listing_type=gd_place">click here</a> to add your place now';
    	}
    		}

    It should do exactly what you are looking for.

    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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount