Support

Home Forums Event Espresso Premium Label above venue

Label above venue

Posted: December 6, 2013 at 2:31 pm

Viewing 11 reply threads


B D

December 6, 2013 at 2:31 pm

On the event’s registration page I would like to add a label “Address” (which must be translatable) above the venue. In which file should I do this?

Thank you in advance for your help.

B D.


Dean

December 9, 2013 at 12:53 am

Hi,

registration_page_display.php


B D

December 9, 2013 at 3:59 am

Thank you. If I’m not mistaken, the label “Address:” is in reality already part of the venue block, but for some reason it doesn’t show up in my case.

It this the code responsible for it?

<?php
/* Display the address and google map link if available */
if ($location != ” && (empty($org_options[‘display_address_in_regform’]) || $org_options[‘display_address_in_regform’] != ‘N’)) {
?>
<p class=”event_address” id=”event_address-<?php echo $event_id ?>”><span class=”section-title”><?php echo __(‘Address:’, ‘event_espresso’); ?></span> <br />
<span class=”address-block”>
<?php /*echo stripslashes_deep($venue_title); */?><br />
<?php echo stripslashes_deep($location); ?><br />
<span class=”google-map-link”><?php echo $google_map_link; ?></span>
</span>
</p>


Tony

  • Support Staff

December 9, 2013 at 4:15 am

If you go to Event Espresso -> Template Settings.

Set ‘Display the address in the registration form?’ to Yes and ‘Save Options’ the venue address should be displayed.


B D

December 9, 2013 at 4:21 am

Thank you.

The venue address is displayed in my registration form. The problem is only the label “Address:” which should show up above the address: it is this label that is missing/not visible.


Tony

  • Support Staff

December 9, 2013 at 4:36 am

If you view the output page source can you see it there?


B D

December 9, 2013 at 4:48 am

Yes, it is there in the page’s code source, even translated (my site being in French).


Tony

  • Support Staff

December 9, 2013 at 4:52 am

Sounds like there could be some CSS hiding a span with class section-title?


B D

December 9, 2013 at 5:34 am

It is indeed the case. I added .section-title {display:none;} to hide the “Description” label, but the undesired consequence is that the field “Address” get hidden as well.

I suppose there is no specific css to only hide the “Description” label (so that “Address” stays visible)…


Tony

  • Support Staff

December 9, 2013 at 5:40 am

You could try:

.event_description .section-title {
display: none;
}


B D

December 9, 2013 at 5:45 am

This works wonders.

Thank you very much. Problem solved now.


Tony

  • Support Staff

December 9, 2013 at 5:51 am

No Problem 🙂

Viewing 11 reply threads

The support post ‘Label above venue’ 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