-
Author
-
October 16, 2013 at 10:01 #4484SQadminKeymaster
To add a right sidebar to members page do the following:
1. Add this code to sweetdate-child/functions.phpCOPY CODEadd_filter('kleo_bp_directory_main_cols', 'kleo_custom_members_cols'); function kleo_custom_members_cols() { return 'eight'; } add_action('bp_after_directory_members', 'kleo_add_buddy_sidebar', 99); function kleo_add_buddy_sidebar() { get_sidebar('buddypress'); }
2. Add this code to WP Admin – Sweetdate – Styling options – Quick css:
COPY CODEdiv#main .widgets-container.sidebar_location {text-align: left;}
February 22, 2014 at 19:09 #11304bendisraeliParticipantThanks for the code!
How would one get a left-hand sidebar on the members page using this please?
February 26, 2014 at 20:24 #11481AbeKeymasterHi, this is the code but you will need to change a file for it to work until version 2.5 of the theme
COPY CODE//Members left sidebar add_filter('kleo_bp_directory_main_cols', 'kleo_custom_members_cols'); function kleo_custom_members_cols() { return 'eight'; } add_action('bp_before_directory_members', 'kleo_add_buddy_sidebar', 99); function kleo_add_buddy_sidebar() { get_sidebar('buddypress'); }
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.May 24, 2014 at 03:49 #18692hugblueParticipantHi ..
When using the first part of the code :
COPY CODEadd_filter('kleo_bp_directory_main_cols', 'kleo_custom_members_cols'); function kleo_custom_members_cols() { return 'eight'; } add_action('bp_after_directory_members', 'kleo_add_buddy_sidebar', 99); function kleo_add_buddy_sidebar() { get_sidebar('buddypress'); }
Then how do i by this code make the width smaller ?
I tried changing the eight to seven and six. But seems to do nothing.Thz.
May 28, 2014 at 23:35 #18991AbeKeymasterChanging to six will make the sidebar smaller. just tested it
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.June 3, 2014 at 08:37 #19261AbeKeymasterI entered your site and it has six columns. Check your caching
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.June 3, 2014 at 11:04 #19279hugblueParticipantHi Abe ..
Just tested it again and sorry there was a change.
When i change the number/text ” eight ” then it is the members cols that is changing.
But it is the right sidebar i want a little smaller!
How do i do this ?
June 7, 2014 at 01:51 #19457AbeKeymasterto do that you should put instead of get_sidebar(‘buddypress’); -> get_sidebar(‘buddypress-members’); and create a sidebar-buddypress-members.php and in is copy the contents from the sidebar.php but change the $sidebar_class to a higher value.
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.June 17, 2014 at 07:40 #19959iamj_kimParticipantI put a left sidebar on the member directory, but can’t see how to change the aside- class to three columns instead of four. Can you point me in the right direction? Thanks.
Attachments:
You must be logged in to view attached files.June 20, 2014 at 14:59 #20379AbeKeymasterHi, you could create a new file sidebar-bp-members and copy the content from sidebar.php to use it just for the members page and make the changes to use four columns there. Also you need to change get_sidebar() to get_sidebar(‘bp-members’) in the members page template
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.October 19, 2014 at 07:34 #32140pablo_qac87ParticipantHello.
Is it possible to add both? (one to the left and the other to the right?). Also I want to add another to the top (because I want to add 3 banners of adsense). Is it possible?
Thank you
October 19, 2014 at 07:45 #32141pablo_qac87ParticipantAlso, can you send me the code to adda right sidebar to homepage. Thanks
October 20, 2014 at 10:54 #32181AbeKeymasterFor Left and Right sidebar try adding this code:
COPY CODE//Members left sidebar add_filter('kleo_bp_directory_main_cols', 'kleo_custom_members_cols'); function kleo_custom_members_cols() { return 'four'; } add_action('bp_before_directory_members', 'kleo_add_buddy_sidebar', 99); function kleo_add_buddy_sidebar() { get_sidebar('buddypress'); } add_action('bp_after_directory_members', 'kleo_sidebar', 99);
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.October 20, 2014 at 10:57 #32182AbeKeymaster@pablo_qac87 for the homepage you have 2 options:
– edit your page and choose a different template other that Front Page
– edit the template page-templates/front-page.php and adjust it somehow like right_sidebar.phpHi 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.February 15, 2015 at 14:03 #46172NeptinParticipantThe width on the sidebar is smaller than on any other page with this enabled. How can I make the sidebar the same width as the other pages?
February 15, 2015 at 14:08 #46173NeptinParticipantAlso, the alignment is set to centered somehow, so all the content in the sidebar is being centered.
February 16, 2015 at 15:02 #46244AbeKeymasterput a link to your page to see what is wrong please
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 topic ‘Members directory page with sidebar – How to’ is closed to new replies.