• Hi everyone,

    Thank you for taking the time to read my quick problem:

    My pages are displaying FULL width content areas.

    Example #1: https://letstalkac.com/

    I am attempting to get my posts to do the same thing.

    The problem is:

    Example: #2: https://letstalkac.com/whynter-arc-14s-review/

    My posts are showing a sidebar. Then. Once I get the sidebar removed? How can I center the content area?

    I’m trying to make example #2 to look like example #1.

    I’m an experienced coder.

    I’ve Googled this problem; Read forums here. No success.

    I really appreciate the help.

    I’ll be looking into the fix once I have a fresh brain.

    -Taylor ??

    PS:

    Here’s the custom CSS I’m using via Customization Additional CSS option.

    .page .panel-content .entry-title, .page-title, body.page:not(.twentyseventeen-front-page) .entry-title {

    font-size: 1.625rem;
    text-transform: none;
    letter-spacing:0px;
    color:#27471F;
    line-height:1.4em;
    }

    .entry-content {

    letter-spacing:0.02em;
    font-size:1.1em;
    line-height:1.8em;
    }

    .background-fixed .panel-image { background-attachment:scroll;
    background-size:100%;
    }

    .entry-title {
    font-weight:bold;

    }

    li {margin-left:20px; margin-top:10px; margin-bottom:10px;}

    .wrap { max-width: 830px; background-color:none; }

    .panel-image {
    max-height: 650px;
    }

    Thank you again for your help.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ttomp13

    (@ttomp13)

    Update: Deleted the last widget from sidebar under WIDGETS. Now content area is floating awkwardly to right of page on Archive pages:

    https://letstalkac.com/blog/

    It appears my luck worked though. Deleting that widget deleted the sidebar on my POSTS. Now I just need to straighten up the archive pages.

    Thread Starter ttomp13

    (@ttomp13)

    If I could get my archives page to match these full width posts, that would be amazing.

    Here’s my problem:

    https://letstalkac.com/blog/

    Any help is so much appreciated.

    I’d like to remove the sidebar from ALL Pages (using the twentyseventeen theme). I’ve read quite a few posts on this topic, but haven’t found a solution. It seems that you, ttomp13 got no replies to your query, but have had some success with something quite similar to what I want to do. Your example 1 is what I’m trying to do, ‘tho I’d prefer the content to be wider.

    I have a child theme, and I’m fairly comfortable with CSS, but would like to avoid editing PHP.

    I’m amazed that such a seemingly simple and basic thing is so difficult in an official WordPress theme!

    This section of the parent theme (twenty-seventeen) should help you understand how to turn off the sidebar from the theme.

    
    /**
     * Register widget area.
     *
     * @link https://developer.www.ads-software.com/themes/functionality/sidebars/#registering-a-sidebar
     */
    function twentyseventeen_widgets_init() {
    	register_sidebar(
    		array(
    			'name'          => __( 'Blog Sidebar', 'twentyseventeen' ),
    			'id'            => 'sidebar-1',
    			'description'   => __( 'Add widgets here to appear in your sidebar on blog posts and archive pages.', 'twentyseventeen' ),
    			'before_widget' => '<section id="%1$s" class="widget %2$s">',
    			'after_widget'  => '</section>',
    			'before_title'  => '<h2 class="widget-title">',
    			'after_title'   => '</h2>',
    		)
    	);
    
    	register_sidebar(
    		array(
    			'name'          => __( 'Footer 1', 'twentyseventeen' ),
    			'id'            => 'sidebar-2',
    			'description'   => __( 'Add widgets here to appear in your footer.', 'twentyseventeen' ),
    			'before_widget' => '<section id="%1$s" class="widget %2$s">',
    			'after_widget'  => '</section>',
    			'before_title'  => '<h2 class="widget-title">',
    			'after_title'   => '</h2>',
    		)
    	);
    
    	register_sidebar(
    		array(
    			'name'          => __( 'Footer 2', 'twentyseventeen' ),
    			'id'            => 'sidebar-3',
    			'description'   => __( 'Add widgets here to appear in your footer.', 'twentyseventeen' ),
    			'before_widget' => '<section id="%1$s" class="widget %2$s">',
    			'after_widget'  => '</section>',
    			'before_title'  => '<h2 class="widget-title">',
    			'after_title'   => '</h2>',
    		)
    	);
    }
    add_action( 'widgets_init', 'twentyseventeen_widgets_init' );

    CAVEAT! This includes all the widget areas, the two footer areas and the sidebar area.

    I don’t know the command, but you don’t want to add this action for the sidebar. Maybe someone will give us more information so you can put it in your child theme.

    You could just take out the sidebar from this part of the parent theme, but remember you did this when the parent theme is updated. Perhaps copying this to your child theme and deleting the sidebar instance would do it. I don’t know for sure.

    Sorry this is the functions.php file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Sidebar – Full Width Content in Posts’ is closed to new replies.