Forums

[resolved] [Plugin: SidePosts Widget] Disable default style (4 posts)

  1. 8207h32
    Member
    Posted 2 years ago #

    I will implement disable style via function theme with this instruction http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles
    I just will make child theme with disabling default sideposts widget plugin style, And I just tried to used ID_style_url filter but did not work.

    Is it possible to disable your style via custom function? I hope it. I love your plugin. And just tried removed date with this your last filtered code, and its worked.

    
    function my_sideposts_date( $date ) {
        return '';
    }
    add_filter('sideposts_date', 'my_sideposts_date');
    

    Thanks

  2. Txanny
    Member
    Posted 2 years ago #

    I think you mean to disable the default stylesheet. Isn't it?

    Then you need to hook into the action 'sideposts_style_url' :

    function disable_sideposts_style( $url ) {
    	return '';
    }
    add_filter('sideposts_style_url', 'disable_sideposts_style');
  3. 8207h32
    Member
    Posted 2 years ago #

    @Txanny

    Yes, I mean to disable the Sideposts Widget Default stylesheet. And thank you very much for your kind answer. It was worked.

  4. Txanny
    Member
    Posted 2 years ago #

    Just to note that this hook has been deprecated. Now have to use 'ak_sideposts_style_url' as the old one will desapear on some future release.

    Or also you can create a file named 'alkivia.ini' on wp-content and write this on it:

    [sideposts]
    disable-module-styles = On

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags