WordPress.org

Ready to get started?Download WordPress

Forums

upPrev
[resolved] How to move css to theme stylesheet. (4 posts)

  1. Anand Kumar
    Member
    Posted 1 year ago #

    I want to remove upprev.css and add codes to theme's style.css. How to do that?

    Any hook?

    http://wordpress.org/extend/plugins/upprev/

  2. Untested, but if you've identified the CSS, have you tried overriding the plugin's CSS with !important in your theme's style.css file?

  3. Marcin Pietrzak
    Member
    Plugin Author

    Posted 1 year ago #

    I want to remove upprev.css and add codes to theme's style.css. How to do that?

    Use wp_dequeue_style function.

    <?php
    add_action( 'wp_enqueue_scripts', 'iworks_upprev_wp_dequeue_style', 999 );
    function iworks_upprev_wp_dequeue_style()
    {
        wp_dequeue_style( 'upprev-css' );
    }
    ?>

    Add this code to functions.php of active theme or create a (mu)plugin.

  4. Marcin would know best, he wrote the plugin after all. ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic