Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-07T18:55:33-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16644 2012-01-07T18:55:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16644&p=59961#p59961 <![CDATA[Re: Removing the default CSS]]>
thelastminute wrote:
I'm also having this same issue.

I have cleared all the caches as well.

Any thoughts?


Add this to your functions.php file:

Code:

add_action( 'wp_print_styles', 'my_deregister_styles', 100 );

function my_deregister_styles() {
   wp_deregister_style('ws-plugin--s2member');
}

remove_action("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");

add_filter("ws_plugin__s2member_login_header_styles", "__return_false");



I'm not sure if all that is needed but it works.

Statistics: Posted by Stephem — January 7th, 2012, 6:55 pm


]]>
2012-01-07T13:07:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16644&p=59934#p59934 <![CDATA[Re: Removing the default CSS]]>
I have cleared all the caches as well.

Any thoughts?

Statistics: Posted by thelastminute — January 7th, 2012, 1:07 pm


]]>
2012-01-03T05:54:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16644&p=59509#p59509 <![CDATA[Re: Removing the default CSS]]> Statistics: Posted by Cristián Lávaque — January 3rd, 2012, 5:54 am


]]>
2012-01-02T00:43:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16644&p=59407#p59407 <![CDATA[Removing the default CSS]]>
Code:

<link rel="stylesheet" id="ws-plugin--s2member-css" href="http://site.com/spa/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&#038;qcABC=1&#038;ver=111220-111220-1212004154" type="text/css" media="all" />



I searched these forums and found a solution but it simply isn't working.


How can I prevent s2Member Pro from loading it's default CSS?

You can create this directory and file: /wp-content/mu-plugins/s2-hacks.php

Code:

<?php
add_action ("ws_plugin__s2member_after_loaded", "remove_s2_pro_css");
function remove_s2_pro_css ()
    {
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");
    }
?>




Any idea's as to why it's not being removed?

Statistics: Posted by Stephem — January 2nd, 2012, 12:43 am


]]>