• Resolved 8207h32

    (@8207h32)


    I will implement disable style via function theme with this instruction https://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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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');
    Thread Starter 8207h32

    (@8207h32)

    @txanny

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

    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
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: SidePosts Widget] Disable default style’ is closed to new replies.