• Resolved tripflex

    (@tripflex)


    You have this code in your plugin that loads the common.css file on EVERY page … this should not be necessary, especially when you’re loading CSS that defines a very standard CSS selector like .left

    
    // We need this on all pages
    wp_enqueue_style( 'ots-common',     asset( 'css/common.css' ),    null, VERSION );
    

    This should NOT be necessary on every page, and if it for some reason actually is … you should NOT be using standard CSS select classes that can cause problems with other plugins when loading your custom CSS on every page.

Viewing 1 replies (of 1 total)
  • Plugin Author smartcat

    (@smartcat)

    thanks for your feedback, ill look into this and see what ways it can be improved, ie: changing the css rules to reduce conflicts.

    as for loading the css – there’s reasons why the common css rules are required on all pages, mainly going back to the fact that the user can use the shortcode or the widget on any page/post.

    Best regards

Viewing 1 replies (of 1 total)
  • The topic ‘Loading CSS assets on EVERY page!?’ is closed to new replies.