• Resolved johnssd

    (@johnssd)


    Thanks so much for this update to a great plugin. However I do want to revert back to simpler times on one issue: I would like to disable the styles and let my theme widget settings take over. Is it ok to delete the following from the plug-in’s php code? It seemed to work, but I don’t know coding that much so I wanted to make sure I’m not causing other problems for the plug in. Here are the lines I deleted:

    /**
    * Register our styles
    *
    * @return void
    */
    add_action( ‘wp_enqueue_scripts’, ‘category_posts_widget_styles’ );

    function category_posts_widget_styles() {
    wp_register_style( ‘category-posts’, plugins_url( ‘category-posts/cat-posts.css’ ) );
    wp_enqueue_style( ‘category-posts’ );
    }

    thank you advance.
    JH

    https://wordpress.org/plugins/category-posts/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Did work for me too
    thx 😉

    Brilliant – instantly fixed sites for me too!

    Steve

    (@claude-haukf)

    This worked for me also. Thank you @johnssd!

    Plugin Author Mrinal Roy

    (@mkrdip)

    Hi All,

    Sorry for the late reply.

    I had many issues so was busy to dealing them.

    I’ll add an option in newest version of the plugin to include plugin CSS or not, may be a checkbox in widget.

    BTW, you can submit feature request here in Github by opening an new issue: https://github.com/mkrdip/category-posts-widget

    Commits are more than welcome, I’ll add you guys as contributor of the plugin who take care of it for future.

    I’m having hard time managing a full time job + study + WordPress community works.

    Hello,

    I realise this was 2/3 months ago, but I am wondering if someone can answer, from where do these lines get deleted… what file?

    /**
    * Register our styles
    *
    * @return void
    */
    add_action( ‘wp_enqueue_scripts’, ‘category_posts_widget_styles’ );

    function category_posts_widget_styles() {
    wp_register_style( ‘category-posts’, plugins_url( ‘category-posts/cat-posts.css’ ) );
    wp_enqueue_style( ‘category-posts’ );
    }

    Thank you so much!
    Good luck with everything Mrinal!!

    Oh duh… I see now in the plugins php…

    Plugin Author Daniel Floeter

    (@kometschuh)

    The change can be downloaded here: https://github.com/mkrdip/category-posts-widget.

    – A new option “Disable Widget CSS” (Default: false).
    – Backward compatible (nothing to do on existing styles).

    Best regards

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘disabling styles’ is closed to new replies.