Support

Home Forums Event Espresso Premium Customize ESPRESSO_VENUE layout?

Customize ESPRESSO_VENUE layout?

Posted: September 11, 2014 at 5:07 pm

Viewing 2 reply threads


The Dirty Easel

September 11, 2014 at 5:07 pm

You can see an event on this page:
https://thedirtyeasel.com/event-registration/?ee=10

On the right I have the venue info, which I pulled in with this:

<?php echo do_shortcode("[ESPRESSO_VENUE outside_wrapper='div' outside_wrapper_class='rightalign' show_address='true' show_title='false' show_map_image='true' map_image_wrapper='google-map' map_w='300' map_h='300']");?>

And it looks fine, except for the address. There is no space before it, I’d prefer to be able to have a label above it that says “Address:”, and the city and state are on separate lines (with a <br> at the end of each line). Is there a place where I can tweak the layout without having to edit the shortcodes.php file (don’t want changes to go away with the next upgrade).


Sidney Harrell

September 11, 2014 at 8:27 pm

What you can do is take the function that gets called in the shortcodes.php file, copy it into a custom functions plugin and change the function name by adding _custom after it. You’ll also need to copy the add_shortcode line above or below the function and change the function name in the parameter to add your _custom to it and maybe _CUSTOM to the name of the shortcode. Then in your do_shortcode line, add the _CUSTOM to it. That way you can change the layout in your copy of that function and it will be preserved on updates.


The Dirty Easel

September 11, 2014 at 10:42 pm

I have never created a custom functions plugin before, but now I have, and I am feeling very smug. It worked, thank you!

Viewing 2 reply threads

The support post ‘Customize ESPRESSO_VENUE layout?’ 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