Previous Code Given No Longer Working Correctly

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

This topic contains 4 replies, has 3 voices, and was last updated by  Thakksy 1 year, 9 months ago.

  • Author
    Posts
  • #7661

    Thakksy
    Member
    Post count: 321

    Hey Guys, i had support a while back about only having one sidebar displayed on the forums. The below was given to me and it does still work but for some reason it’s now also changing all the buddypress pages which i don’t want. Maybe since the update it started happening.

    add_filter( 'yt_site_tertiary_content_general_layout', 'yt_bbpres_site_layout' );
    add_filter( 'yt_site_secondary_content_general_layout', 'yt_bbpres_site_layout' );
    
    add_filter( 'yt_site_page_layout_primary', 'yt_bbpres_site_layout');
    add_filter( 'yt_site_page_layout_secondary', 'yt_bbpres_site_layout' );
    add_filter( 'yt_site_page_layout_tertiary', 'yt_bbpres_site_layout' );
    /**
     * Return current layout for bbpress
     */
    function yt_bbpres_site_layout( $current_layout ){
    	if( yt_is_bbpress() )
    		return 'right-sidebar';
    
    	return $current_layout;
    }
  • #7676

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #7690

    Thakksy
    Member
    Post count: 321

    Didn’t work, it produces the following error:

    Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND) in /home/thakksy/public_html/wp-content/themes/sparkle-childtheme/custom-functions.php on line 136

  • #7718

    Jacob
    Staff
    Post count: 2323

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #7729

    Thakksy
    Member
    Post count: 321

    Works great, thanks again guys for your help.

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!