Support

Home Forums Event Espresso Premium Displaying venue adress in another order

Displaying venue adress in another order

Posted: June 30, 2016 at 1:13 am

Viewing 1 reply thread


mitunsdigital

June 30, 2016 at 1:13 am

Hey there,

I got another question about displaying the venue adress in event details. It is usually displayed this way:

Here comes the venue-name:

<h4><strong>Venue:</strong>&nbsp;&nbsp; <strong> 
<a itemprop="url" href="Here comes the URL">
<span itemprop="name">This is the displayed name of the venue</span></a></strong></h4>

Is it possible to remove the <strong>-tag and make it a non-strong?

This is the heading:
<strong><span class="dashicons dashicons-location-alt"></span>Adress:</strong>
Same question as above.

Here comes the data:

<div itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress"><span itemprop="streetAddress">Reherweg 28</span>, 
<span itemprop="addressLocality">Aerzen</span>, 
<span itemprop="addressRegion">Unknown</span>, 
<span itemprop="postalCode">31855</span>, 
<span itemprop="addressCountry">Unknown</span>
</div>

How do i remove the adressRegion and adressCountry? Where can I change the order of the itemprop? In Germany we use another way to write down adresses.

Thanks for your help!


Tony

  • Support Staff

June 30, 2016 at 2:52 am

Is it possible to remove the -tag and make it a non-strong?

Yes, it is possible.

You will need to alter the template used for the Venue details and load your own custom version.

Go to /event-espresso-core-reg/public/Espresso_Arabica_2014/

Copy the file content-espresso_events-venues.php

Place that file within your themes root directory (preferably a child theme) and edit the output there.

EE will use that custom template in place of the default and the strong tags you mentioned at on line 20 and 28.

How do i remove the adressRegion and adressCountry? Where can I change the order of the itemprop? In Germany we use another way to write down adresses.

To change the order of the address details you can use a function like this:

https://gist.github.com/lorenzocaum/5e2658a1f7e7a9a6b5c0

You can place that within a Custom Functions Plugin on your site or within the themes functions.php file.

$address_formats[ 'DE' ] = "{address}%{address2}%{zip} {city}";

Sets the Germany address formatting, you can change that to suit.

Viewing 1 reply thread

The support post ‘Displaying venue adress in another order’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso