Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1383036
    MattHoll
    Participant

    Hello again.

    I somehow enabled the sidebar on my posts and cannot figure out how I did it and how to undo it.

    I’m in Integrity. And now, I have a sidebar with all of the categories and recent posts and such. And it’s on every post. Would like to get rid of that.

    Also, I would *like* the sidebar on the posts page. But I want it actually on the side. When I enabled this for some reason the sidebar went underneath every post. It’s not on the posts page though.

    Sorry so confusing. See the image and you can see it’s underneath.

    What I’d ultimately like to do is have an actual sidebar on the right of the posts page and be able to add a Twitter feed widget in there.

    Any help is appreciated.

    Thanks!

    #1383170
    Joao
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    #1383419
    MattHoll
    Participant
    This reply has been marked as private.
    #1383918
    Paul R
    Moderator

    Hi,

    I was able to fix it by adjusting your Content Width under Layout and Design in the customizer.

    https://www.screencast.com/t/xsqKDfOrtsZy

    You can add your twitter feed under Appearance > Widgets > Main Sidebar

    Thanks

    #1384029
    MattHoll
    Participant

    Great! Thanks!

    How do add or remove that sidebar from the posts page? I will want to test that a bit before I decide if I want it or not. Thanks so much for your help!

    #1384032
    MattHoll
    Participant

    One other thing, it looks like the sidebar is within the container, thus reducing the width of the blog posts. Is there a way to have it outside of the container so that the blog post takes up the full width of that container but the sidebar is outside of it? I’d like to be able to turn that on and off to test it as well, if possible.

    Thanks again!

    #1384110
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! If you do not want to have a sidebar, please go to the customizer, Appearance > Customize > Layout &amp Design > Content Layout and select “Fullwidth”.

    If you want the sidebar on the side and make the content fullwidth, are you trying to say that you want to have a fixed sidebar? Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thank you.

    #1386291
    MattHoll
    Participant

    Thanks again for the help.

    Please see screen cap.

    See how the sidebar is within the container? Is it possible to have it outside of the container?

    Also, is it possible to independently control if the sidebar is on the posts index page and the actual blog posts individual page? Meaning, I might want the sidebar only on that posts index page. Then you click on the blog story and for that page for that specific blog page, the sidebar goes away?

    It looks not possible. I go to Customize/Layout and Design and click one of the sidebar options and the sidebar appears on the blog post itself.

    Then I go to Customize/Blog and it allows me to either go full width or use the global settings that I just used in Customize/Layout and Design. I see no setting for turning it on only for the posts index page. So, I have to turn on that global setting for a sidebar which gives me a sidebar on the each blog entry. I would like the ability to have it ONLY on the blog posts index page.

    Help?

    #1386515
    Rad
    Moderator

    Hi there,

    You can override them through coding. Please add this code to your child theme’s functions.php

     function x_get_content_layout() {
    
        $content_layout = x_get_option( 'x_layout_content' );
    
        if ( $content_layout != 'full-width' ) {
          if ( is_home() ) {
            $layout = 'content-sidebar';
          } elseif ( is_singular( 'post' ) ) {
            $layout = 'full-width';
          } elseif ( x_is_portfolio_item() ) {
            $layout = 'full-width';
          } elseif ( x_is_portfolio() ) {
            $meta   = get_post_meta( get_the_ID(), '_x_portfolio_layout', true );
            $layout = ( $meta == 'sidebar' ) ? $content_layout : $meta;
          } elseif ( is_page_template( 'template-layout-content-sidebar.php' ) ) {
            $layout = 'content-sidebar';
          } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) {
            $layout = 'sidebar-content';
          } elseif ( is_page_template( 'template-layout-full-width.php' ) ) {
            $layout = 'full-width';
          } elseif ( is_archive() ) {
            if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) {
              $opt    = x_get_option( 'x_woocommerce_shop_layout_content' );
              $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
            } else {
              $opt    = x_get_option( 'x_archive_layout' );
              $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
            }
          } elseif ( x_is_product() ) {
            $layout = 'full-width';
          } elseif ( x_is_bbpress() ) {
            $opt    = x_get_option( 'x_bbpress_layout_content' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( x_is_buddypress() ) {
            $opt    = x_get_option( 'x_buddypress_layout_content' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( is_404() ) {
            $layout = 'full-width';
          } else {
            $layout = $content_layout;
          }
        } else {
          $layout = $content_layout;
        }
    
        return $layout;
    
      }

    This will force the blog index to have the sidebar, then full width for the singular post. This also overrides the setting pulled from the customizer.

    And to change the container’s size for sidebar enabled page, please add this CSS to Admin > Appearance > Customizer > Custom > CSS

    .x-content-sidebar-active .site > .x-container.max {
        max-width: 100%;
    }
    .x-content-sidebar-active .site > .x-container.width {
        width: 95%;
    }

    Thanks!

    #1387171
    MattHoll
    Participant

    Thanks!

    #1387192
    Paul R
    Moderator

    You’re welcome! 🙂

  • <script> jQuery(function($){ $("#no-reply-1383036 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>