Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'remove sidebar'

Viewing 25 results - 1 through 25 (of 261 total)
  • Author
    Search Results
  • #165829

    ananotheruser
    Participant

    Hello everyone,

    I’m running bbpress with the BrickYard theme and I’m use the right sidebar.

    Actually I was able to display the sidebar to all of my blog but the forum : I deleted the line “<?php get_sidebar(); ?>” from the file page.php then I saved it under the name of “bbpress.php”.

    It works but the forum isn’t at a full width :

    And I tried to get the full width but I’m not able to, after some hours I give up.

    I read the documentation of the theme, there is a “template-full-width.php” within the theme but it doesn’t work because it’s page.php without the line that gets the sidebar and that I removed so the problem is still there (I believe that it should auto-resize without the sidebar but it’s not the case).

    Best regards,
    ananotheruser

    PS : Sorry about my crappy english.

    #165498

    stardrive
    Participant

    Please, I removed BBPress Login Widget from the right sidebar. I placed another login widget from a different plugin author. But, it is still showing in the right sidebar in the front end, and the other login widget is not showing.
    Any help as to how to permanently remove the BBPress Login widget?

    Regards,

    Stardrive

    #165489

    In reply to: bbPress Shortcode


    Robkk
    Moderator

    @acs-yt

    Try this custom CSS to see if it would help make your forums full width.

    @media and (min-width: 992px) {
     .bbpress .col-md-8 {
        width: 100%;
     }
    }

    Use this to completely remove the sidebar with CSS.

    @media and (min-width: 992px) {
    .bbpress .col-md-4 {
         width: 0;
         display: none;
     }
    }
    #165396

    cmonache
    Participant
    #164962

    In reply to: Full width and sidebar


    Robkk
    Moderator

    Step by step might be this

    • Install What the File.
    • Go to your bbPress page with the sidebar, and with what the file activated you look in your WOrdPress toolbar and see what bbPress template file it is.
    • Then find the file in your theme, copy it and rename it to `bbpress.php’ and remove any unwanted code such as the sidebar code.</li>
      </ul>

      Usually in a theme the sidebar code is similar to this, so remove this to remove the sidebar.

      <?php get_sidebar(); ?>

    #164955

    In reply to: Full width and sidebar


    davidnsfw
    Participant

    I have added that code to css editor.

    It would be perfect if you could instruct how to remove sidebar step by step.

    #164914

    In reply to: Full width and sidebar


    davidnsfw
    Participant

    Probably after updating the theme, this sidebar is showing there.

    Can you be more precise where I should remove this code?

    #164895

    In reply to: Full width and sidebar


    Robkk
    Moderator

    THis is all the CSS you need.

    .bbpress .post-section {
    margin: 0 2% 20px;
    width: 96%;
    }
    
    .bbpress #content-main {
    width: 100%;
    margin-right: 0;
    }
    
    @media screen and (max-width: 1002px) and (min-width: 768px)
    .bbpress #content-main-inner {
        margin-right: 0;
    }

    To remove the sidebar you have to follow this guide and remove the sidebar PHP code.

    https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #164881

    Robkk
    Moderator

    Not sure about forum subscriptions or if this would work with group forums, but it might be worth a try.

    Install this plugin, put the widget into your sidebar, and go to each topic and remove the users subscriptions manually.

    https://github.com/easydigitaldownloads/bbPress-Topic-Subscribers

    Other than this plugin for topic subscritptions, I do not know what else to recommend right now.

    If group admin ban a user, Ideally banned user should be automatically unsubscribed to group forum. But according to my tests new notifications are still sent by bbpress plugin to banned or removed users.

    Will keep a note of this, because this is expected if you ban a user. Maybe bbPress or BuddyPress could add this in the future.


    Robkk
    Moderator

    You have to copy the main template bbPress is inheriting from your theme for its layout and create a bbpress.php file from it. This would usually require you to remove the sidebar code, then use CSS to make the layout fullwidth.

    https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #164605

    Robkk
    Moderator

    You have to copy the main template bbPress is inheriting from your theme for its layout and create a bbpress.php file from it. This would usually require you to remove the sidebar code, then use CSS to make the layout fullwidth.

    https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #164073

    division123
    Participant

    Hi, i am trying to remove the sidebar as well, below is my code from page.php which I have duplicated and renamed bbpress.php but I can’t see which code I need to remove?

    <?php get_header(); ?>

    <?php
    $options = get_option(‘sf_dante_options’);

    $default_show_page_heading = $options[‘default_show_page_heading’];
    $default_page_heading_bg_alt = $options[‘default_page_heading_bg_alt’];
    $default_sidebar_config = $options[‘default_sidebar_config’];
    $default_left_sidebar = $options[‘default_left_sidebar’];
    $default_right_sidebar = $options[‘default_right_sidebar’];
    $sidebar_width = $options[‘sidebar_width’];

    $pb_active = sf_get_post_meta($post->ID, ‘_spb_js_status’, true);
    $show_page_title = sf_get_post_meta($post->ID, ‘sf_page_title’, true);
    $page_title_style = sf_get_post_meta($post->ID, ‘sf_page_title_style’, true);
    $page_title = sf_get_post_meta($post->ID, ‘sf_page_title_one’, true);
    $page_subtitle = sf_get_post_meta($post->ID, ‘sf_page_subtitle’, true);
    $page_title_bg = sf_get_post_meta($post->ID, ‘sf_page_title_bg’, true);
    $fancy_title_image = rwmb_meta(‘sf_page_title_image’, ‘type=image&size=full’);
    $page_title_text_style = sf_get_post_meta($post->ID, ‘sf_page_title_text_style’, true);
    $fancy_title_image_url = “”;

    if ($show_page_title == “”) {
    $show_page_title = $default_show_page_heading;
    }
    if ($page_title_bg == “”) {
    $page_title_bg = $default_page_heading_bg_alt;
    }
    if ($page_title == “”) {
    $page_title = get_the_title();
    }

    foreach ($fancy_title_image as $detail_image) {
    $fancy_title_image_url = $detail_image[‘url’];
    break;
    }

    if (!$fancy_title_image) {
    $fancy_title_image = get_post_thumbnail_id();
    $fancy_title_image_url = wp_get_attachment_url( $fancy_title_image, ‘full’ );
    }

    $sidebar_config = sf_get_post_meta($post->ID, ‘sf_sidebar_config’, true);
    $left_sidebar = sf_get_post_meta($post->ID, ‘sf_left_sidebar’, true);
    $right_sidebar = sf_get_post_meta($post->ID, ‘sf_right_sidebar’, true);

    if ($sidebar_config == “”) {
    $sidebar_config = $default_sidebar_config;
    }
    if ($left_sidebar == “”) {
    $left_sidebar = $default_left_sidebar;
    }
    if ($right_sidebar == “”) {
    $right_sidebar = $default_right_sidebar;
    }

    sf_set_sidebar_global($sidebar_config);

    $page_wrap_class = $post_class_extra = $sidebar_class = ”;
    if ($sidebar_config == “left-sidebar”) {
    $page_wrap_class = ‘has-left-sidebar has-one-sidebar row’;
    if ($sidebar_width == “reduced”) {
    $post_class_extra = ‘push-right col-sm-9’;
    $sidebar_class = ‘col-sm-3’;
    } else {
    $post_class_extra = ‘push-right col-sm-8’;
    $sidebar_class = ‘col-sm-4’;
    }
    } else if ($sidebar_config == “right-sidebar”) {
    $page_wrap_class = ‘has-right-sidebar has-one-sidebar row’;
    if ($sidebar_width == “reduced”) {
    $post_class_extra = ‘col-sm-9’;
    $sidebar_class = ‘col-sm-3’;
    } else {
    $post_class_extra = ‘col-sm-8’;
    $sidebar_class = ‘col-sm-4’;
    }
    } else if ($sidebar_config == “both-sidebars”) {
    $page_wrap_class = ‘has-both-sidebars row’;
    $post_class_extra = ‘col-sm-9’;
    $sidebar_class = ‘col-sm-3’;
    } else {
    $page_wrap_class = ‘has-no-sidebar’;
    }

    $remove_breadcrumbs = sf_get_post_meta($post->ID, ‘sf_no_breadcrumbs’, true);
    $remove_bottom_spacing = sf_get_post_meta($post->ID, ‘sf_no_bottom_spacing’, true);
    $remove_top_spacing = sf_get_post_meta($post->ID, ‘sf_no_top_spacing’, true);

    if ($remove_bottom_spacing) {
    $page_wrap_class .= ‘ no-bottom-spacing’;
    }
    if ($remove_top_spacing) {
    $page_wrap_class .= ‘ no-top-spacing’;
    }

    $options = get_option(‘sf_dante_options’);
    $disable_pagecomments = false;
    if (isset($options[‘disable_pagecomments’]) && $options[‘disable_pagecomments’] == 1) {
    $disable_pagecomments = true;
    }

    ?>

    <?php if ($show_page_title) { ?>
    <div class=”container”>
    <div class=”row”>
    <?php if ($page_title_style == “fancy”) { ?>
    <?php if ($fancy_title_image_url != “”) { ?>
    <div class=”page-heading fancy-heading col-sm-12 clearfix alt-bg <?php echo $page_title_text_style; ?>-style fancy-image” style=”background-image: url(<?php echo $fancy_title_image_url; ?>);”>
    <?php } else { ?>
    <div class=”page-heading fancy-heading col-sm-12 clearfix alt-bg <?php echo $page_title_bg; ?>”>
    <?php } ?>
    <div class=”heading-text”>
    <h1 class=”entry-title”><?php echo $page_title; ?></h1>
    <?php if ($page_subtitle) { ?>
    <h3><?php echo $page_subtitle; ?></h3>
    <?php } ?>
    </div>
    </div>
    <?php } else { ?>
    <div class=”page-heading col-sm-12 clearfix alt-bg <?php echo $page_title_bg; ?>”>
    <div class=”heading-text”>
    <h1 class=”entry-title”><?php echo $page_title; ?></h1>
    </div>
    <?php
    // BREADCRUMBS
    if (!$remove_breadcrumbs) {
    echo sf_breadcrumbs();
    }
    ?>
    </div>
    <?php } ?>
    </div>
    </div>
    <?php } ?>

    <?php if ($sidebar_config != “no-sidebars” || $pb_active != “true”) { ?>
    <div class=”container”>
    <?php } ?>

    <div class=”inner-page-wrap <?php echo $page_wrap_class; ?> clearfix”>

    <?php if (have_posts()) : the_post(); ?>

    <!– OPEN page –>
    <div class=”clearfix <?php echo $post_class_extra; ?>” id=”<?php the_ID(); ?>”>

    <?php if ($sidebar_config == “both-sidebars”) { ?>
    <div class=”row”>
    <div class=”page-content col-sm-8″>
    <?php the_content(); ?>
    <div class=”link-pages”><?php wp_link_pages(); ?></div>

    <?php if ( comments_open() && !$disable_pagecomments ) { ?>
    <div id=”comment-area”>
    <?php comments_template(”, true); ?>
    </div>
    <?php } ?>
    </div>

    <aside class=”sidebar left-sidebar col-sm-4″>
    <div class=”sidebar-widget-wrap sticky-widget”>
    <?php dynamic_sidebar( $left_sidebar ); ?>
    </div>
    </aside>
    </div>
    <?php } else { ?>
    <div class=”page-content clearfix”>

    <?php the_content(); ?>

    <div class=”link-pages”><?php wp_link_pages(); ?></div>

    <?php if ( comments_open() && !$disable_pagecomments ) { ?>
    <?php if ($sidebar_config == “no-sidebars” && $pb_active == “true”) { ?>
    <div id=”comment-area” class=”container”>
    <?php } else { ?>
    <div id=”comment-area”>
    <?php } ?>
    <?php comments_template(”, true); ?>
    </div>
    <?php } ?>
    </div>
    <?php } ?>

    <!– CLOSE page –>
    </div>

    <?php endif; ?>

    <?php if ($sidebar_config == “left-sidebar”) { ?>
    <aside class=”sidebar left-sidebar <?php echo $sidebar_class; ?>”>
    <div class=”sidebar-widget-wrap sticky-widget”>
    <?php dynamic_sidebar( $left_sidebar ); ?>
    </div>
    </aside>
    <?php } else if ($sidebar_config == “right-sidebar”) { ?>
    <aside class=”sidebar right-sidebar <?php echo $sidebar_class; ?>”>
    <div class=”sidebar-widget-wrap sticky-widget”>
    <?php dynamic_sidebar( $right_sidebar ); ?>
    </div>
    </aside>
    <?php } else if ($sidebar_config == “both-sidebars”) { ?>
    <aside class=”sidebar right-sidebar col-sm-3″>
    <div class=”sidebar-widget-wrap sticky-widget”>
    <?php dynamic_sidebar( $right_sidebar ); ?>
    </div>
    </aside>
    <?php } ?>

    </div>

    <?php if ($sidebar_config != “no-sidebars” || $pb_active != “true”) { ?>
    </div>
    <?php } ?>

    <!–// WordPress Hook //–>
    <?php get_footer(); ?>

    #163803

    mette_Chr
    Participant

    Hey guys!
    I’m working on forum in bbPress and got some symbols in front of debatforum. It is 5 of these symbols > in the right sidebar. I need to remove these from the code, but can’t figure out which files. Can you help me?

    #163324

    RemcoH
    Participant

    hi,

    My genesis theme adds a padding to .entry and therefore the content-sidebar pages have this padding too. It makes the forum content really narrow. I want to remove that padding. Only for forum pages and topics. How?

    The site is still in development but i included a url that shows the issue.

    WP version 4.2.2
    BBpres verion 2.5.7

    https://bfgv.nl/forums/onderwerp/dit-is-ook-een-test/

    Thnx

    #163171

    In reply to: BBPress fullwidght


    PinkishHue
    Participant

    Your site is not available so I can’t have a look.

    If you’re using a custom theme with ‘theme options’ you need to look at the settings there to see if the default setting is with a sidebar, your forum will use this default page unless you create templates specially for it.

    Here’s some info on the templates that bbpress looks for in your theme:

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    Usually using page.php in most themes, so you could try opening up your page.php, remove the code that includes a sidebar, then save it as bbpress.php

    #163120

    Robkk
    Moderator

    Id say use this plugin ,add the widget to a sidebar ,go to the forum and remove the subscribers from the widget

    https://github.com/easydigitaldownloads/bbPress-Topic-Subscribers

    #162916

    husk3r
    Participant

    ok, i made a mistake with the namee bbpress .php , changed to bbpress.php and now it is using the bbpress.php template, again ive removed the <?php get_sidebar(‘page’); ?> but it is still not full width

    the code is like this

    <?php
    /*
    Template Name: bbpress
    */

    get_header(); ?>
    <div class=”stump”>
    <div class=”container topborder”></div>
    <div class=”container contentarea”>
    <div class=”row animated fadeInUp”>
    <div id=”content” class=”col-md-8 col-sm-8″>
    <?php get_template_part(‘loop’, ‘page’); ?>
    <?php wp_reset_query(); ?>
    </div>

    </div>
    </div>

    <div class=”container bottomborder”></div>
    </div>
    <?php get_footer(); ?>

    #162915

    husk3r
    Participant

    I did that, using the plugin my theme was using the page.php , so I copied it to my themes directory, and renamed it to bbpress.php

    i have removed the <?php get_sidebar(‘page’); ?> from the code in the template but it is still not full width, and when I use the plugin again , it says that it still uses the page.php
    even when Ive selected the bbpress template in the page that contains the forums shortcode

    #162901

    husk3r
    Participant

    hello, i am using bbpress in a page with the shortcode.
    Ive managed to remove the sidebar creating a template which code is as follows ;
    ——————————————————————————-
    <?php
    /*
    Template Name: Forums
    */

    get_header(); ?>

    <div id=”primary” class=”site-content-forums”>
    <div id=”content” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, ‘page’ ); ?>
    <?php comments_template( ”, true ); ?>
    <?php endwhile; // end of the loop. ?>

    </div><!– #content –>
    </div><!– #primary –>

    <?php get_footer(); ?>
    ——————————————————————-
    and then applying this custom CSS

    #site-content-forums {
    float: left;
    width: 100%;
    }

    in the page, ive chosen this template.

    BUT the forum still is not full width
    please help me!!


    Robkk
    Moderator

    Well the file you are suppose to copy and create a bbpress.php file from is index.php

    And although putting the forum index shortcode in a page is “easier” in a sense , you will still come up with issues just like you are going through. This is why I have been editing the Codex for the last few days to hopefully fix these issues that users might come across.

    As for that weird wp tweaks issue you have , I do not know how to fix that. if you are only using that plugin just for a bbPress specific sidebar there are better plugins than that one.

    And it is not hard to manually create a bbPress specific sidebar too.

    Thanks so much – although I am wondering if it is going to solve my problem (but please do!)

    it might help a little, there is a bunch of post meta that you would have to remove for it to look correct.

    You can also contact me later today through email, if you need help during the process.

    https://robkkdev.wordpress.com/contact/


    itsmeitsb
    Participant

    Hello,

    WP 4.2.2
    BB 2.5.7

    Looking to find where I can just remove the “You Must Be Logged In” prompts all together. I’ve already got the login/register stuff added to my sidebar, I don’t need the prompts to direct people.

    View post on imgur.com

    View post on imgur.com

    These are the specific things I’m speaking of. Can I just block them somehow in the css or is there somewhere I can simply delete the code to remove them all together?

    Thanks for your help.


    sharongraylac
    Participant

    Hello!

    I removed my sidebar but I would like to keep the “favorite” option.

    Is there another place to put it?

    Thanks!
    Sharon
    bellynsoul.com/forums

    #161344

    Robkk
    Moderator

    my latest post disappeared, maybe because of too many links.

    probably

    the default menu below the avatar shall be removed and appear in the sidebar on the right in a dropdown menu ( not only to make a consistent layout but also to prevent users to see the information also on other user profiles).

    did you create a custom widget?? it might be better if you did for this because then you could output all of the links to the user profile.

    #161343

    Robkk
    Moderator

    since your other pages with the sidebar look fine and adjust well.

    only thing i can think is maybe you created a bbpress.php and removed some divs that were essential for the sidebar??

    since your theme is free i will download it and check it out.

    #161293

    project_subdomain
    Participant

    @robkk, thanks again for your support. my latest post disappeared, maybe because of too many links.

    regarding the new menu, i hope this image can explain it better:
    the default menu below the avatar shall be removed and appear in the sidebar on the right in a dropdown menu ( not only to make a consistent layout but also to prevent users to see the information also on other user profiles). Optimally it should be shown only when the user is logged in, but yet i’d be very happy to get it working no matter of the user’s login status.

    unfortunately i can’t provide a link at the moment, so i put the id’s at the image.

    parent menu items are “nachrichten” and “account”.
    in “account” the links for the user profiles shall be displayed as sub menus.

    the parent menu-code looks like this:
    <li id="menu-item-566" class="menu-item menu-item-type-post_type menu-item-object-page cur…ancestor menu-item-has-children menu-item-566 dcjq-parent-li">

    the sub menu show profile-code like this:
    <li id="menu-item-572" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-572"></li>

    (for “edit profile” I already found a menu-link solution)
    [btw: default theme twenty twelve]

Viewing 25 results - 1 through 25 (of 261 total)
Skip to toolbar