PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
drbyte wrote:use custom include headers in your theme.
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: Select all
<?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");
}
?>
Or, you could remove only specific action Hooks; based on Payment Gateway.
- Code: Select all
<?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_alipay_css_js::alipay_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_authnet_css_js::authnet_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_ccbill_css_js::ccbill_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_clickbank_css_js::clickbank_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_google_css_js::google_css");
remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_paypal_css_js::paypal_css");
}
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(''); ?>
<?php endwhile; else: ?>
<?php endif; ?>
<?php if( !is_page(array('pageID', 'pageID')) ) :?>
Any code you don't want to show on the above pages goes in here. I use that to hide some parts of the header like menus, use logo with no link back....
<?php } ?>
<?php endif;?>
Cristián Lávaque wrote:Have you tried a cache plugin like Quick Cache also by Jason? https://wordpress.org/extend/plugins/quick-cache/
There may be a conflict with another plugin that causes this problem. Do you get the same times for those files if you disabled the other plugins as a test?
Users browsing this forum: No registered users and 2 guests