Opening Hours
[resolved] CSS stylesheets (5 posts)

  1. Jimmy Malmqvist
    Posted 1 year ago #

    You should look over the stylesheets, and stop using !important tags. It's interfering with other plugins. Instead use proper classes and id's.



  2. cjc1867
    Posted 1 year ago #

    Same here it has changed the Datepicker in Events Manager and the colours aren't right....

  3. cjc1867
    Posted 1 year ago #

    Just deleted backend.css and Events Manager is back to normal but there is some clashes with same of the classes ie .ui-state-default.

    Does it have to use the same classes and could this be fixed?

  4. Jimmy Malmqvist
    Posted 1 year ago #

    He can add classes to his plugin page and fix the css. In the meantime you can still keep backend.css and add this code to your theme functions.php:

    add_action( 'admin_init', 'my_remove_admin_styles', 30 );
    function my_remove_admin_styles() {
        wp_dequeue_style( 'opening-hours-backend' ); // Opening Hours

    If you want to remove the frontend css you can use this:

    add_action( 'wp_enqueue_scripts', 'my_remove_front_styles', 30 );
    function my_remove_front_styles() {
        wp_dequeue_style( 'opening-hours-frontend' ); // Opening Hours

    Maybe there is a better code to use, but this works for me.

  5. janizde
    Plugin Author

    Posted 1 year ago #

    Hi guys,

    I'm currently working on v 2.0. In this version I will use less in development and with less it is very easy to do it the way jayem82 suggested, which is setting a custom wrap class for the content and then less extends the selectors. So I will only change the behavior on my own Plugin pages.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Opening Hours
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.