• Resolved sagiet

    (@sagiet)


    Super theam ?? i love this.
    can you plz help my, when i change the sidebar layout for buddypress pages noting happened.
    tnx

    • This topic was modified 7 years, 12 months ago by sagiet.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Tom

    (@edge22)

    Glad you like it!

    For BuddyPress, you may need to use a function: https://docs.generatepress.com/article/sidebar-layout/#using-a-function

    For example:

    add_filter( 'generate_sidebar_layout','tu_custom_buddypress_sidebar_layout' );
    function tu_custom_buddypress_sidebar_layout( $layout )
    {
     	// If we are on a buddypress page, set the sidebar
     	if ( function_exists( 'is_buddypress' ) && is_buddypress() ) {
     	 	return 'both-left';
     	}
    
     	// Or else, set the regular layout
     	return $layout;
     }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Hope this helps ??

    Thread Starter sagiet

    (@sagiet)

    Tnx for your quick reply:)
    adding this if some one else are having same prop ??
    I found out that buddypress treat the pages of user and member as an blog ore post.
    And I need to change them in Admin -> appearence -> customize -> layout.

    Sorry for not telling you before and tanx for taking the time to help..
    Do love your theme.

    Theme Author Tom

    (@edge22)

    No problem! Glad you found a solution ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘cant change sidebar layout’ is closed to new replies.