Location pop-up

This topic contains 34 replies, has 4 voices, and was last updated by  Stiofan O’Connor 7 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #369805

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Ah, is it so when ever someone searches it is to a me location? If so it might be as simple as setting jquery to trigger clicking that automatically?

    Stiofan

    #369870

    Joy
    Buyer
    Post count: 1076

    Hi again, yes I would like location to be requested upon entering the site so when someone does a search the results shown are near their location. That’s the main thing that I want to happen…if possible. Thank you.

    #370154

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Try this in your GD>Design>Scripts>Footer script code

    
    
    <script>
    jQuery(function() {
        if ( jQuery( ".gt_near_me_s" ).length ) {
      		if(!jQuery( ".gt_near_me_s" ).prop('checked')){
            jQuery( ".gt_near_me_s" ).trigger( "click" );
          }
    		}
    });
    </script>

    Thanks,

    Stiofan

    #370242

    Joy
    Buyer
    Post count: 1076

    Ahhhh! It worked. Thank you so so much!

    #370360

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    🙂

Viewing 5 posts - 31 through 35 (of 35 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