Forum Replies Created
-
Author
-
cgParticipant
Thank you Laura,
#1 I will do further research on MAXCDN
#2 below is the custom code in function.php – what needs to be removed to eliminate the error?
/**
* Redirect buddypress and bbpress pages to registration page
*/
function kleo_page_template_redirect()
{
//if not logged in and on a bp page except registration or activation
if( ! is_user_logged_in() &&
( ( ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) || is_bbpress() )
)
{
wp_redirect( home_url( ‘/register/’ ) );
exit();
}
}
add_action( ‘template_redirect’, ‘kleo_page_template_redirect’ );add_action(‘user_register’, ‘kleo_pmpro_default_level’);
function kleo_pmpro_default_level($user_id) {
pmpro_changeMembershipLevel(1,$user_id);
}
add_action(‘geodir_article_close’,’add_social_sharing’);
function add_social_sharing() {
get_template_part( ‘page-parts/posts-social-share’ );
}cgParticipantThank you for your response.
#1: It appears that MaxCDN requires the use of W3 Total Cache – is this correct and can you recommend an alternative?
#2: I tried removing both the BuddyPress and bbPress plugins and received the following error message on the home page:
Fatal error: Call to undefined function bp_is_blog_page() in /home/content/p3pnexwpnas04_data03/56/3000756/html/wp-content/themes/kleo-child/functions.php on line 22
cgParticipantHi,
I really love your theme! I’m using the GeoDirectory plugin and would like to have the Social Share icons appear below each GeoDirectory listing – how can this be done?
Thanks!
-
AuthorPosts