Skip to:
Content
Pages
Categories
Search
Top
Bottom

Headers displaying incorrectly


  • cwgah22
    Participant

    @cwgah22

    I have followed the advice in the support documentation and created a “bbpress.php” copy of a working template. I have also verified using “What The File” that the page is correctly referencing the “bbpress.php” template. I have also installed “bbp style pack” and activated the FSE setting. Despite this, the header is only displaying some of the information correctly.

    This is how the page should be displayed
    But this is how it is actually displaying

    I am using a custom-made theme derived from the twentytwentytwo default, with modifications using Greenshift blocks. If anyone has any advice or ideas as to what could be causing the header to only be partially displayed correctly would be appreciated.

    WP version 6.1.1
    bbPress version 2.6.9

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

  • Robin W
    Moderator

    @robin-w

    FSE themes are relatively new.

    Have you tried not having the bbpress.php but keeping the FSE theme fix in style pack?


    cwgah22
    Participant

    @cwgah22

    I did this initially as I activated the FSE fix first, then when that didn’t work I created a bbpress.php. I may try creating a new header that is a bit simpler specifically for forum pages if integration isn’t well supported.


    cwgah22
    Participant

    @cwgah22

    I’ve managed to cobble together a solution. Essentially bbp-style-pack was selecting its own “bbpress.php” file instead of whichever was put into the theme folder. Essentially it just meant I had to edit the “bbpress.php” file at “wp-content/plugins/bbp-style-pack/templates” instead of creating one in my themes folder.

    Secondly, it seems the visual issues were caused by using the Greenshift plugin, the styling of which was not recognised by bb-style-pack. This is understandable and no-ones fault but my own for assuming that they would be compatible. Instead I created a new header using just standard Gutenberg blocks and styling which worked fine, just had to add a custom font and some padding to the content.


    Robin W
    Moderator

    @robin-w

    can you post the final bbpress.php you created please


    cwgah22
    Participant

    @cwgah22

    <?php
    /**
     * bbpress file to emulate page.html to display forums
     *
     * 
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    
    block_template_part('header-small-dark');
    
    wp_head();
    
    while ( have_posts() ) : the_post();
    	?>
    
    	<div class="bbpress-container bsp-fse-container">
    		
    		<div class="bbpress-content">
    			<?php the_content(); ?>
    		</div>
    	</div>
    
    <?php
    endwhile;
    
    ?>
    

    The only modifications I made were to remove the calling of the footer and adjusted the header to a variant that I created called “header-small-dark”. Oh, and also removed the call for the page title.


    Robin W
    Moderator

    @robin-w

    that’s great – thanks for posting 🙂

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