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
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');
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.
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