WordPress.org

Forums

Events Manager
[resolved] Search event form - Avoid br (5 posts)

  1. nsciolini
    Member
    Posted 2 years ago #

    In the event page, the search form add br tags between field. How can i remove them?

    http://crm.breseller.com.ar/eventos/

    I tested the plugin in 2 themes and in both the search form add the br tag, and in the default theme works fine.

    I try to remove the following filters but not work

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

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

  2. R-one
    Member
    Posted 2 years ago #

    hi,

    my solution for my website, i edit events-search.php under plugins\events-manager\templates folder in my theme.

    I do not know if this is the best solution but it works.

  3. agelonwl
    Member
    Posted 2 years ago #

    try this in your theme style.css

    .em-events-search-form br {
     display: none;
    }

    also, try r-one solutions.

  4. nsciolini
    Member
    Posted 2 years ago #

    I think it is a bug of event manager but meanwhile i fixed it like agelinwl says:

    .em-events-search-form br {
        display: none;
    }
    .em-events-search-form p {
        display: inline;
    }

    Thanks!

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    if you switched themes it'd probably work as expected without the br tags being added (e.g. twentytwelve). It's your theme adding wpautop late into your the_content

    the css fix may work for you without side-effects, but otherwise you need to find where your theme adds the wpautop and remove it (or change when/if it should add it)

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic