WP-Members: Membership Framework
[resolved] [Plugin: WP-Members] Enabling/Disabling Default Styles (3 posts)

  1. creativeworldstudio
    Posted 4 years ago #

    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.


    If it helps, I'm using this code in my functions.php to remove styles (but its not doing anything):

    function remove_styles() {

    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.

  2. Chad Butler
    Plugin Author

    Posted 4 years ago #

    Seems like you've figured it out already...

    If you need more information, this and more is covered in the Users Guide.

  3. creativeworldstudio
    Posted 4 years ago #

    Yes, figured it out thanks. When I first saw that field option I assumed it was to add a style sheet in *addition* to the default styles (and not replace it). Thanks for the quick reply.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic