A structured address block
- The address block should be used every time you need to display an address on a page. The address block is a structured format for storing and displaying address data. It helps search engines find the right kinds of content. Address blocks can also be plotted on maps or used for directions finders.
- WCMS use
From the content editor
Navigate to Common content > Text > Addresses
Right click and choose Insert > Address
Give the new item a good name - ideally the name of the venue or location you are making an address for.
The Address content item has the following core fields:
- Venue name
- Street address
- Locality (suburb and village, town or city)
- Latitude and Longitude
Complete the fields as needed, and be sure to add a Latitude and Longitude.
From the experience editor
In a valid placeholder, bring up the Add Here option and select Address.
You will be prompted to either browse for, or create a new address item.
Once you have chosen, the address item will be displayed in the placeholder, with labels to allow in-line editing of the fields.
- MVC.net use
<address itemtype="https://schema.org/PostalAddress" itemscope class="show-on-map"> <p itemprop="address"> <meta itemprop="name" content="Hampshire County council" /> <span itemprop="streetAddress"> The Castle </span> <br /> <span itemprop="addressLocality"> Winchester </span> <br /> <span itemprop="postalCode"> SO23 8UJ </span> <br/> <span itemprop="postOfficeBoxNumber"> </span> <br /> <meta itemprop="latitude" content="51.063767" /> <meta itemprop="longitude" content="-1.319357" /> </p> </address>
- Version and status