I am trying to style the shopping cart page, and I’ve copied the shopping_cart.php file over to the uploads/espresso/templates folder. The page is working but is adding random <p> and <br> around the hidden form fields and throughout the page.
I tried removing white space to see if that made any difference but it didn’t.
The random p and br tags are likely being generated from the active WordPress theme, not the template. Depending on how the theme is removing the standard WordPress auto-formatting, you may be able to work around the issue by wrapping the [ESPRESSO_EVENTS] shortcode on the main registration page with the [raw] short tag.
It will look like this:
[raw][ESPRESSO_EVENTS][/raw]
If that doesn’t work, you might need to alter the theme to allow the standard WordPress auto format functions to run on the Event Espresso pages and remove the custom formatting functions if need be. Here are a few articles that may help:
The support post ‘Shopping cart template adding blank and elements’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.