-
Author
-
January 16, 2014 at 15:55 #9803kriminalParticipant
Is it possible to remove the right sidebar widgeted area so the Groups goes across the whole page. Same with the activity page?
January 20, 2014 at 03:50 #9926AbeKeymasterHi,
There isn’t a setting in the admin panel but you can add this code to sweetdate-child/functions.php file to accomplish thatCOPY CODE//remove sidebar for activity and groups pages add_action('kleo_before_page','my_remove_sidebar'); function my_remove_sidebar() { if(bp_is_groups_component() || bp_is_activity_component()) { remove_action('kleo_buddypress_after_content', 'kleo_sidebar'); add_filter('kleo_buddypress_content_class', create_function('', 'return "twelve";')); } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.April 22, 2015 at 15:53 #55598RicardoParticipantThis function does not work anymore. Could you tell the new one?
April 22, 2015 at 17:53 #55642AbeKeymasterhm.. the function should work. Add it to the child theme functions.php and make sure it is active
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.April 22, 2015 at 18:32 #55671RicardoParticipantIt doesn’t. I was looking at the code and found it out how to partially fix it.
I couldn’t fix the commented line:
COPY CODE//remove sidebar for activity and groups pages add_action('kleo_before_page','my_remove_sidebar'); function my_remove_sidebar() { if(bp_is_groups_component() || bp_is_activity_component()) { remove_action('kleo_buddypress_after_content', 'kleo_buddypress_sidebar'); //add_filter('kleo_content_class', create_function('', 'return "twelve";')); //this does not work } }
April 22, 2015 at 19:39 #55680AbeKeymastergive me a link to that page. that line if you un-comment it, it will make the main content full width
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.April 22, 2015 at 19:40 #55681AbeKeymasteroh sorry, it is :
kleo_buddypress_content_class instead of kleo_content_classHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.April 22, 2015 at 20:26 #55693RicardoParticipantmmmm… Strange. The code looks logically fine but the member profile also had the right sidebar removed and turned full width… The intention is only activity and group pages full width. Any alternative for the “if” clause?
This is the function for now:
COPY CODE//remove right sidebar for activity and groups pages add_action('kleo_before_page','my_remove_sidebar'); function my_remove_sidebar() { if(bp_is_groups_component() || bp_is_activity_component()) { remove_action('kleo_buddypress_after_content', 'kleo_buddypress_sidebar'); add_filter('kleo_buddypress_content_class', create_function('', 'return "twelve";')); } }
April 22, 2015 at 20:44 #55700RicardoParticipantThis works to keep the right sidebar only on profile page.
COPY CODE//remove sidebar for activity and groups pages add_action('kleo_before_page','my_remove_sidebar'); function my_remove_sidebar() { if(!bp_is_member()) { remove_action('kleo_buddypress_after_content', 'kleo_buddypress_sidebar'); add_filter('kleo_buddypress_content_class', create_function('', 'return "twelve";')); } }
April 22, 2015 at 20:44 #55701AbeKeymasterFor activity page and group page you can do
bp_is_groups_directory() || bp_is_activity_directory()Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.April 22, 2015 at 20:50 #55705AbeKeymasterGreat. Glad I could be of help.
Have a nice day.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.