Previous Code Given No Longer Working Correctly

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

Status: resolved
Viewing 4 reply threads
  • Author
    Posts
    • #7661

      Thakksy
      Member

      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

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

      Login | Register | Forgot Password?

    • #7690

      Thakksy
      Member

      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

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

      Login | Register | Forgot Password?

    • #7729

      Thakksy
      Member

      Works great, thanks again guys for your help.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.

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

© Copyright 2021 by wpthms.com. All Rights Reserved.