mminten
March 4, 2014 at 8:03 pm
My Address block looks like this:
McClellan Park
5225 Luce Ave
McClellan Park, CA
95652
And I want the zip to be next to the state like this:
McClellan Park
5225 Luce Ave
McClellan Park, CA 95652
In the template file the code is:
<code><span class="address-block">
<?php echo $venue_title; ?><br />
<?php echo stripslashes_deep($location); ?><br />
<span class="google-map-link"><?php echo $google_map_link; ?></span>
</span></code>
Is there a way to use another variable instead of $location or to force it to move the zip up?
Thanks,
Matt
mminten
March 4, 2014 at 8:04 pm
Add New Note to this Reply
I am using Version 3.1.30.7P
Dean
March 5, 2014 at 2:03 am
Add New Note to this Reply
Hi,
Before the code block that starts
<p class="event_address" id="event_address-<?php echo $event_id ?>"><span class="section-title"><?php echo __('Address:', 'event_espresso'); ?></span> <br />
(this is just above the code you linked)
Add this
EDIT: the forum didnt like this code so you can find it here http://pastebin.com/aLkpVqDP
It’s not pretty but it gets the job done.
This reply was modified 10 years, 9 months ago by Dean . Reason: had to use pastebin as the forum kept skipping part of the code
mminten
March 5, 2014 at 9:39 am
Add New Note to this Reply
Thanks, now how can I change the words Map & Directions to just Map in the google maps link?
Dean
March 6, 2014 at 2:25 am
Add New Note to this Reply
Hi,
The best way to change text is via the language files and translations and/or the Gettext filter – please see here: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/