[Plugin: WP-Members] Enabling/Disabling Default Styles
-
Hello – so far in testing WP Members looks to be a very promising plugin, thank you!
I’d like to be able to disable the WP-Members default CSS styles completely.
I know we can remove plugin scripts/styles via the theme functions.php however I’m not sure if you’re using (the prefered) wp_enqueue_script() and wp_enqueue_style() to load your styles, or if you’re just dropping them into the header?
And perhaps that isn’t working for me because I’m using the wrong $handle (I thought it would be ‘wp-members’ but this dosen’t do anything).
For now I’ll overwrite the CSS from my theme styles.css but ideally if an option could be added in the backend (ie- [check box] Use WP-Members CSS?) that would be great.
Thanks, Leon.
http://ww.wp.xz.cn/extend/plugins/wp-members/
update:
If it helps, I’m using this code in my functions.php to remove styles (but its not doing anything):add_action('wp_print_styles','remove_styles',100); function remove_styles() { wp_deregister_style('wp-members'); }update 2:
Ok I see now that if I set the WP Members > Manage Options > Custom CSS field to my themes CSS field the default styles arn’t loaded. Thanks.
The topic ‘[Plugin: WP-Members] Enabling/Disabling Default Styles’ is closed to new replies.