WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] [PATCH] Hide the unwanted element inside #em-wrapper (8 posts)

  1. Daedalon
    Member
    Posted 1 year ago #

    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/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    this is most likely your theme adding this, we don't add p tags to wrappers.

  3. Daedalon
    Member
    Posted 1 year ago #

    It happens also with 2011 theme. I'll let you know if I get around to trying without other plugins.

    At the moment all is working well after changing the above CSS fix to apply to all p elements that are children of #em-wrapper (previous applied to grandchildren first-childs as well):

    #em-wrapper > p {
    	display:			none;
    }
  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    our demo doesn't do it - http://demo.wp-events-plugin.com/events/

  5. Daedalon
    Member
    Posted 1 year ago #

    Likely a plugin conflict then. If I get time to test this I'll get back to the thread. Won't be before October, though.

  6. dsevillano
    Member
    Posted 1 year ago #

    I have the same problem with the tags <p> inside #em-wrapper.
    I have used the css solutions but I would like to know when will be fix in the module.
    Thankss

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    there probably won't be because this is most likely caused by either your theme or another plugin. usually the culprit is the theme.

  8. Daedalon
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.