I don't need Region to be displayed

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

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #26074

    amstourist
    Expired Member
    Post count: 185

    Hello from Amsterdam!

    I don’t want the region to be displayed, because I have only one default location as a city: Amsterdam.

    So its not necessary to show the region/province label on a detail page in the right sidebar as an address.

    How can I remove that?

    Cheers

    #26087

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Jan,

    You would probably be best just hiding it with CSS.

    Please add this CSS to your child theme CSS file

    
    
    span[itemprop="addressRegion"]{
       display:none;
    }

    Thanks,

    Stiofan

    #37755

    viguursthijs
    Buyer
    Post count: 273

    Hi Guys,

    your css-solution works quite well, except for one thing that i don’t figure out: “how to get rid of the comma”.

    This is what we use so far…

    span[itemprop=”addressRegion”],
    span[itemprop=”addressCountry”]{
    display:none;
    }

    As you can see the region and country have disappeared, but the comma keeps visible…

    Thanks in advance!

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

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

Open Support Ticket