Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing overall Template

  • @ricks03

    Participant

    My current theme (Responsive) comes with several templates.

    By default, bbPress appears to be using the (unsurprisingly) “Default” template, and I just want to change bbPress to use the “Full Width” template. I don’t see a setting for that. Possible?

    Can I create a page with a shortcode or something?

Viewing 14 replies - 1 through 14 (of 14 total)
  • @ricks03

    Participant

    I don’t really want to modify the display, just change the overall template.

    @robin-w

    Moderator

    @ricks03

    Participant

    Thanks!

    I’ve tried this to no avail.

    I ‘m using the responsive theme, with a child theme. I take the full-width-page.php from the themes/responsive folder, copy it to /themes/my-responsive/bbpress.php

    But nothing changes? that should work?

    @robin-w

    Moderator

    can you post that template here

    @ricks03

    Participant

    <?php
    /**
    * Exit if accessed directly.
    *
    * @package Responsive
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit;
    }

    /**
    * Full Content Template
    *
    * Template Name: Full Width Page (no sidebar)
    *
    * @file full-width-page.php
    * @package Responsive
    * @author CyberChimps
    * @copyright 2020 CyberChimps
    * @license license.txt
    * @version Release: 1.0
    * @filesource wp-content/themes/responsive/full-width-page.php
    * @link https://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
    * @since available since Release 1.0
    */

    get_header();

    Responsive\responsive_wrapper_top(); // before wrapper content hook. ?>

    <div id=”wrapper” class=”site-content clearfix”>
    <div class=”content-outer container”>
    <div class=”row”>
    <?php Responsive\responsive_in_wrapper(); // wrapper hook. ?>
    <main id=”primary” class=”content-area col-940″ role=”main”>
    <?php
    get_template_part( ‘loop-header’, get_post_type() );

    if ( have_posts() ) :
    while ( have_posts() ) :
    the_post();
    Responsive\responsive_entry_before();
    get_template_part( ‘partials/page/layout’, get_post_type() );
    Responsive\responsive_entry_after();
    Responsive\responsive_comments_before();
    comments_template( ”, true );
    Responsive\responsive_comments_after();
    endwhile;
    get_template_part( ‘loop-nav’, get_post_type() );

    else :
    // Elementor 404 location.
    if ( ! function_exists( ‘elementor_theme_do_location’ ) || ! elementor_theme_do_location( ‘single’ ) ) {
    get_template_part( ‘loop-no-posts’, get_post_type() );
    }

    endif;
    ?>

    </main><!– end of #content-full –>
    </div>
    </div>
    <?php Responsive\responsive_wrapper_bottom(); // after wrapper content hook. ?>
    </div> <!– end of #wrapper –>
    <?php
    Responsive\responsive_wrapper_end(); // after wrapper hook.
    get_footer();
    ?>

    @robin-w

    Moderator

    is your site public?

    @ricks03

    Participant

    The site is currently under dev. Will PM you URL

    @ricks03

    Participant

    Hmm, no PM function. And the forum is locked down behind membership. Let me know best way to facilitate.

    @robin-w

    Moderator

    contact me via

    Contact me

    @robin-w

    Moderator

    ok, in the bbpress file above, can you change

    <?php Responsive\responsive_in_wrapper(); // wrapper hook. ?>
    <main id=”primary” class=”content-area col-940″ role=”main”>

    to

    <?php Responsive\responsive_in_wrapper(); // wrapper hook. ?>
    <main id=”primary” class=”content-area bbpress-area col-940″ role=”main”>
    

    nothing will change, but let me know when you have and I’ll do the next bit !

    @ricks03

    Participant

    done!

    @robin-w

    Moderator

    ok, add this to the custom css section of your theme

    .bbpress-area {
    	width: 100% !important;
    }

    @ricks03

    Participant

    Fixed! Thank you so much!

    @robin-w

    Moderator

    no problem – glad to have helped !

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