WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] Enabling/Disabling Default Styles (3 posts)

  1. creativeworldstudio
    Member
    Posted 3 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.

    http://wordpress.org/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.

  2. Chad Butler
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 3 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

About this Topic