Address format in map location bubble

This topic contains 6 replies, has 2 voices, and was last updated by  hkuk 6 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #388301

    hkuk
    Expired Member
    Post count: 10

    When a pin on the Google map is clicked, a popup showing the information about that location is displayed. The address only includes the street, but not the town or postcode for example.

    My customer would like to suppress the street but show the remaining parts of the address (Town, county, postcode). How can I influence the address lines being displayed in the popup?

    (Screenshot of what I see at the moment is attached, I need an address like:
    Caroline West
    Ewhurst
    Surrey
    GU6 7RS).
    Website page where you can see the problem is: http://hk-uk.co.uk/find-practitioner/

    #388303

    Kor
    Moderator
    Post count: 16516

    Hi John,

    Please share WP temp admin access to your site so we can take a better look. You can post the details here using the private reply option below.

    #388352

    hkuk
    Expired Member
    Post count: 10
    This reply has been marked as private.
    #388402

    Kor
    Moderator
    Post count: 16516

    Hi John,

    Please insert this custom CSS into GD > Design > Scripts > Custom Style CSS

    
    
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="addressLocality"], 
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="addressRegion"], 
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="postalCode"], 
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="addressCountry"],
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="streetAddress"] {
        display:block!important;
    }
    #388416

    hkuk
    Expired Member
    Post count: 10

    Hi Kor,

    Thanks – now the full address is being displayed. Thanks!
    BUT – the street line is still there. How can I suppress that line in the bubble?

    Cheers,
    John

    #388419

    Kor
    Moderator
    Post count: 16516

    Hi John,

    Sorry for not paying much attention here. Please replace the custom CSS with the below.

    
    
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="addressLocality"], 
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="addressRegion"], 
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="postalCode"], 
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="addressCountry"]
     {
        display:block!important;
    }
    
    .geodir-bubble-meta-side .geodir_more_info.post_address span[itemprop="streetAddress"] {
        display:none!important;
    }
    #388423

    hkuk
    Expired Member
    Post count: 10

    PERFECT! Many thanks, Kor. You guys are brilliant.

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

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

Open Support Ticket