Posted: February 28, 2019 at 8:56 pm
I almost have my edited venue template displaying like I want but I’m having trouble with two issues. 1. I’m trying to get the “Address:” label and address information to display on one line. 2. I would like the “upcoming events for a venue” code snippet to display after the venue description but before the Google Map, but I’ve moved the address display above the description. The code snippet in my child theme is set to display “after_the_content”. Here is the link to my dev site: http://184.154.230.20/~mattcott/btdchicago.com/theaters/american-blues-theater/ Here is my edited content-espresso_venues-details.php: Any help would be much appreciated.
edit_post_link( __( 'Edit', 'event_espresso' ), '<span class="edit-link">', '</span>' ); <h2> <?php <p> <?php <?php </div> |
|
I was able to achieve the results I wanted but for #1, I was forced to edit EEH_Address.helper.php. However, the changes did not apply when it was copied into my Child Theme. So I had to overwrite the original in the plugins core/helpers folder. Not ideal, as I’ll have to edit it again with any plugin updates. I hope the Event Espresso Team will consider moving the address format template to public as dealing with address formatting in Event Espresso 4 is a real pain. For #2, I was able to move the “after_the_content” action to content-espresso_venues-location.php before the Google Map. |
|
You do not need to make edits to core code to make the formatting changes. You could either use CSS:
Or if you do not want to use CSS to change the format, you could override the |
|
The support post ‘Need Help with Address and Location of Code Snippet on Venue Listing’ 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.