WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Events Manager] Full Calendar top border not overridden (4 posts)

  1. Shonu
    Member
    Posted 3 years ago #

    The top border color of the full table calendar of this plugin is nor formatted according to the style of the plugin, but is taken from the TwentyTen Theme style.css, which exclusivly defines:

    #content tr td {
        border-top: 1px solid #E7E7E7;
    ...
    }

    and EM only with a less priority style command: (I guess border-top overrules global td border?)

    table.fullcalendar td {
        border: 1px solid #888888;
    ...
    }

    The effect is, that the top border is light gray as of the default theme, and the rest black as of the plugin css.

    Please see, what can be done about it - thanks

  2. steckinsights
    Member
    Posted 2 years ago #

    Did you have any luck on this? I'm having a hard time overriding the css for Events Manager because the stylesheet for Events Manager is positioned lower than the my theme's stylesheet.

  3. agelonwl
    Member
    Posted 2 years ago #

    @steckinsights

    you can create a function that would remove EM default css then create your own using the same element class name/id.
    e.g.

    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');
  4. steckinsights
    Member
    Posted 2 years ago #

    @agelonwl

    Thanks for that response! I actually went that direction (using the built-in theme functionality of adding an additional stylesheet to the head), but am concerned about load times (I hate the thought of loading unnecessary stylesheets). Thanks for pointing out that solution!

    Take care!

Topic Closed

This topic has been closed to new replies.

About this Topic