Events Manager
[resolved] Unwanted tags appearing with #_EVENTNOTES (7 posts)

  1. Daedalon
    Posted 3 years ago #

    Using #_EVENTNOTES I get unwanted < p > tags before the text to output. The demo site has the same. In the HTML of http://demo.wp-events-plugin.com/events/blood-on-the-dance-floor-2013-01-14/ you can see the following:

    <p><p><p>Lorem Ipsum is simply...


  2. agelonwl
    Posted 3 years ago #

    did you try adding remove_filter('dbem_notes', 'wpautop'); in your theme functions.php?

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    I don't see any p tags there?

    We run wpautop on the notes but that should be the only time it's run since we hook into the_content AFTER wpautop, so we completely remove p tags originally added by wp

    further p tags may be added e.g. by your theme.

    see http://codex.wordpress.org/Function_Reference/wpautop

    alternatively, angelonwl's suggestion can work as well.

  4. Daedalon
    Posted 3 years ago #

    On both newest Firefox (Pale Moon to be exact) and IE8 line 167 of the HTML of the page linked above starts with three < p > tags:

    <p><p><p>Lorem Ipsum is simply

    That's the HTML, not the rendered page. The rendered page shows empty lines on both browsers before the "Lorem Ipsum" text, which should start vertically at the same height as the top of the image next to it but starts a centimeter below the top of the image.

    Didn't try agelonwl's solution yet as we have a CSS solution in place now, but since this is something seen on multiple browsers on the demo site, I thought it might warrant an update in the plugin core.

    This may or may not be related to http://wordpress.org/support/topic/plugin-events-manager-patch-hide-the-unwanted-element-inside-em-wrapper.

  5. agelonwl
    Posted 3 years ago #

    another way is to try some css trick like p:empty { display:none; }

  6. Daedalon
    Posted 3 years ago #

    Good to know about that workaround, will make it easier to match only the exact < p > elements in question.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    not sure if I just missed it last time, but I do now see the extra paragraphs too. Will fix asap (probably won't be this next update, the one after).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.