Disabling stylesheet not working
-
I’ve installed v2.9.1 of WP-Members on WP 3.9, and am trying to disable the default style sheet.
As per this example on the rocketgeek website I have used the following code:
add_action( 'wp_print_styles', 'my_styles' ); function my_styles() { wp_deregister_style( 'wp-members' ); }
However in the header the following is still loaded:
<link rel='stylesheet' id='wp-members-css' href='https://www.domain.com/wp-content/plugins/wp-members/css/generic-no-float.css' type='text/css' media='all' />
And if I put in my theme’s stylesheet as the custom stylesheet in the WP-Members options it duplicates that stylesheet in the header.Is there something I’m missing? Has something changed, such as the handle for removing the default stylesheet?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Disabling stylesheet not working’ is closed to new replies.