Skip to:
Content
Pages
Categories
Search
Top
Bottom

Blank page problem with Academica theme


  • akkkarki
    Participant

    @akkkarki

    Hi,

    I think I have some theme compatibility issues with my freshly installed bbPress. I’ve just installed bbPress to my new WordPress site, and when I’m trying to open the forum index page, it will show only a mostly blank page with my theme’s top menu. However, the title of the page and the body part of the HTML source seems to be OK – my body tag looks like this:

    <body class="forum bbpress single single-forum postid-30 logged-in admin-bar no-customize-support">

    I’ve tried to use [bbp-forum-index] shortcode in a page, and it shows the index, but of course I can’t use the forum in this way neither, since if I try to navigate to one of my forum topics, it will also show the blank page.

    I’m using Academica theme (the free one), but I’ve found a solution for an other theme (http://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/) and it seems that fixing my issue would evoke some PHP coding, which I’m not so familiar with. So if you have some tips or solutions, share with me, I’d be very thankful. 🙂

    Thanks in advance! 🙂

    Ohh, and here is the link to my only forum: http://homeschooling.hu/?forum=probaforum
    …and to the page with the shortcode: http://homeschooling.hu/?p=38

Viewing 3 replies - 1 through 3 (of 3 total)

  • akkkarki
    Participant

    @akkkarki

    Meanwhile I’ve solved the problem myself; it was a just a silly exception, which caused the page not to load wholly. Here’s my solution:

    in the /themes/academica/functions/theme/functions.php change this part (lines 143-149):

        } elseif ( is_single() ) {
          if (!is_attachment()) {
          $cat = get_the_category(); $cat = $cat[0];
          echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
          echo $currentBefore;
          the_title();
          echo $currentAfter; }

    to this:

        } elseif ( is_single() ) {
          if (!is_attachment()) {
    	    $cat = get_the_category(); $cat = $cat[0];
    		//support bbPress
    		if (empty($cat)) {
    		  echo $currentBefore;
              the_title();
              echo $currentAfter;
    	    } else {
    		  echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
              echo $currentBefore;
              the_title();
              echo $currentAfter;
    		}
          }

    That’s it, bbPress now works like a charm! 😉

    Cheers!


    Robin W
    Moderator

    @robin-w

    Great, glad you’re fixed, and thanks for posting your solution, this helps others !


    helmutforren
    Participant

    @helmutforren

    I had the same kind of problem, but with a different version of the functions.php file. Robin pointed out this post, and it worked after I adapted it slightly for my version. See my fix, which “zooms in” on the code a little further to more clearly point out the change, at https://bbpress.org/forums/topic/forum-still-not-working-right/#post-146790

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar