WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Remove css in functions.php or wp-config.php (7 posts)

  1. publicradio
    Member
    Posted 2 years ago #

    Hello, I have my own styles for this plugin, so I empty out the css (events_manager.css, not the admin or jquery ui css), but thwn when I upgrade, the new version puts it back in.

    Is there a deregister/dequeue line I can add to functions.php? Some plugins, like Contact Form 7, allow you to set a variable in wp-config.php to set loading css to 'false'. Either method would work for me.

    Thanks.

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

  2. agelonwl
    Member
    Posted 2 years ago #

    try to paste this on your theme functions.php

    function my_em_remove_css(){
    	wp_dequeue_style('events-manager', plugins_url('includes/css/events_manager.css',__FILE__));
    }
    add_action('init','my_em_remove_css');
  3. Daiv Mowbray
    Member
    Posted 2 years ago #

    Hello,
    It would be nice if you could add an option to pull css from theme folder or not at all. This doesn't make sense to have the plugin enque the plugin css then have the theme deactivate it.
    hopefully you could add this function/ option to your next release.
    Thanx.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

  5. publicradio
    Member
    Posted 2 years ago #

    agelonwl's code worked for me, thanks.

  6. mariruiz
    Member
    Posted 1 year ago #

    Hello,

    I am having the same problem. I'm very new to WordPress so it could be I'm overlooking something obvious. But I can't find a way to customize the css for the event manager upcoming event widget. I tried pasting the code above into my functions.php but it doesn't work.

    Can anyone help?

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    you can't customize the CSS with this, it removes CSS that we add. However, you can do this now by visiting Settings > General > Performance Options

    To add custom CSS, then you'd probably want to edit your theme's style.css or use a plugin like JetPack which allows you to add custom CSS to your theme

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic