Geo Listings Near me

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

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

Open Support Ticket
  • Author
    Posts
  • #444717

    Mohanraj Thirumalai
    Expired Member
    Post count: 26

    In my website, I have geo directories as a separate page
    (https://webapp.uic-chp.org/nchpad/directories/)

    But, As soon as I open the homepage I get a pop up (Do you want the geo listings near me and redirecting to the directories page
    (https://webapp.uic-chp.org/nchpad/)

    How can I change the setting where the pop up will be only in the directories page but not when I open the home page.

    Thanks in Advance.

    #444720

    Mohanraj Thirumalai
    Expired Member
    Post count: 26
    This reply has been marked as private.
    #444767

    Alex Rollin
    Moderator
    Post count: 27815

    I don’t think that’s possible, but I will flag your question for the developers to let us know if there is a workaround.

    #444800

    Kiran
    Moderator
    Post count: 7069

    Hello Moharaj,

    Use following code snippet to disable popup on pages than directories page.

    
    
    /* Popup share geo location on particular page */
    function _gd_snippet_advanced_search_js_msg( $params ) {
    	global $post;
    
    	$page_id = 39871; // Change your page id here
    
    	if ( ! ( is_page() && ! empty( $post ) && $post->ID == $page_id ) ) {
    		$params['onload_askRedirect'] = false;
    	}
    
    	return $params;
    }
    add_filter( 'geodir_advanced_search_js_msg', '_gd_snippet_advanced_search_js_msg', 10, 1 );

    Thanks,
    Kiran

Viewing 4 posts - 1 through 4 (of 4 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