WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Events Manager] [PATCH] Hide the unwanted element inside #em-wrapper

[Resolved] [Plugin: Events Manager] [PATCH] Hide the unwanted element inside #em-wrapper

  • Daedalon
    Participant

    @daedalon

    I don’t know if anyone else is getting this, but on my event list page there is always a single opening <p> tag right after div#em-wrapper. I noticed this when I was wondering why are the contents of my event list page lower than on an otherwise identical page made with shortcodes, and found the reason to be that p element. There’s also a closing </p> tag later right before div#em-wrapper is closed. Reverting to 2011 theme didn’t have any effect.

    After doing some debugging with em-events.php I couldn’t find how to make it disappear completely. Changing lines 27-28 from

    `if( empty($content) ){
    ob_start();`

    to

    if( empty($content) ){
    ob_start();
    echo "Debug1.";

    only changed the HTML output from <div id=”em-wrapper”><p> to <div id="em-wrapper"><p>Debug1.. It seems that the 91 line wraps $content inside the unwanted <p> and </p> tags:

    return apply_filters('em_content', '<div id="em-wrapper">'.$content.'</div>');

    In any case, this CSS stops it from affecting the user interface:

    #em-wrapper p:first-child {
    	display:			none;
    }

    http://wordpress.org/extend/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: Events Manager] [PATCH] Hide the unwanted element inside #em-wrapper’ is closed to new replies.