Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Address Block Customization | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Address Block Customization

Address Block Customization

Posted: March 4, 2014 at 8:03 pm

Viewing 3 reply threads


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>&lt;span class=&quot;address-block&quot;&gt;
						&lt;?php echo $venue_title; ?&gt;&lt;br /&gt;
						&lt;?php echo stripslashes_deep($location); ?&gt;&lt;br /&gt;
						&lt;span class=&quot;google-map-link&quot;&gt;&lt;?php echo $google_map_link; ?&gt;&lt;/span&gt;
					&lt;/span&gt;</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

I am using Version 3.1.30.7P


Dean

  • Support Staff

March 5, 2014 at 2:03 am

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, 10 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

Thanks, now how can I change the words Map & Directions to just Map in the google maps link?


Dean

  • Support Staff

March 6, 2014 at 2:25 am

Hi,

The best way to change text is via the language files and translations and/or the Gettext filter – please see here: http://staging.eventespresso.com/wiki/how-to-change-wording-with-poedit/

Viewing 3 reply threads

The support post ‘Address Block Customization’ 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 - Staging Server