Support

Home Forums Event Espresso Premium [ESPRESSO_EVENT] Generates invalid code. Where can I make the fix?

[ESPRESSO_EVENT] Generates invalid code. Where can I make the fix?

Posted: July 24, 2012 at 1:44 pm

Viewing 6 reply threads


Patty Warwick

July 24, 2012 at 1:44 pm

When I use the short code

The output of the code is :

    Office Ma,e
    My venue content
    717 Forest Ave200NLake ForestIL60045United States
    <a href="http://maps.google.com/maps?q=717+Forest+Ave%2CLake+Forest%2CIL%2C60045%2CUnited+States">Map and Directions</a>
    Website: <a href="www.website.com">www.usmagroup.com</a>Phone: 12341231213
    &lt;p class=&quot;map_image_wrapper&quot;<a href="http://maps.google.com/maps?q=717+Forest+Ave%2CLake+Forest%2CIL%2C60045%2CUnited+States">
    </a>

If you notice on line 7, the shortcode produces this line:

<p class="map_image_wrapper"

The p tag doesn’t get closed, thus causing the site to break.

Which file do I need to edit to fix this?

Thank you very much,

Vlad

  • This topic was modified 12 years, 5 months ago by Patty Warwick.


Josh

  • Support Staff

July 24, 2012 at 1:57 pm

Which version number of Event Espresso, Vlad?


Patty Warwick

July 24, 2012 at 3:17 pm

Josh,

I am using version 3.1.25.P


Josh

  • Support Staff

July 24, 2012 at 5:40 pm

Can you try reposting the shortcode you have set up? It got eaten by the forum software.


Patty Warwick

July 25, 2012 at 8:57 am

Here is the screenshot of the shortcode:

http://cl.ly/image/0E2E1q1m1e0A

  • This reply was modified 12 years, 5 months ago by Patty Warwick.
  • This reply was modified 12 years, 5 months ago by Patty Warwick.


Josh

  • Support Staff

July 25, 2012 at 11:33 am

Open up /includes/shortcodes.php and change line 703 to read:

$map_image_wrapper_class = isset($map_image_wrapper_class) ? 'class="' . $map_image_wrapper_class . '">' : 'class="map_image_wrapper">';

I’m curious though, which browser was this tested on? Usually there’s a bit of fault tolerance on the browser’s part where a missing > will not break a layout.


Patty Warwick

July 25, 2012 at 1:22 pm

I’m cross browser testing. I want to make sure that even if the browser tolerates it, it still correct and passes the validity test.

Thanks a lot for your help, Josh!

Viewing 6 reply threads

The support post ‘[ESPRESSO_EVENT] Generates invalid code. Where can I make the fix?’ 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