• Hi everyone,

    I am trying to have my blog page display in the full width of the page. I have tried some of the codes that others have posted for this from various sites including here but it doesn’t change anything. I would like my blog to display the full width of the page just as my other webpages display in the full width; here is a the address to see how my other pages display: angelalifecoach.com or you can click the link below and click on any page other than my blog.
    I don’t need the Blog menu tab that shows in the left hand tab.

    • This topic was modified 6 years, 6 months ago by runningdoves.
    • This topic was modified 6 years, 6 months ago by runningdoves.
    • This topic was modified 6 years, 6 months ago by runningdoves.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • try adding this CSS to style.css of the child theme:

    @media screen and (min-width: 48em) {
    	
    	.blog:not(.has-sidebar) #primary article
    	{
    	  width: 100%;
    	}
    	body:not(.has-sidebar):not(.page-one-column) .page-header
    	{
    	  width: 100%;
    	}
    }

    if you don’t want to see the title ‘BLOG’, change it to:

    @media screen and (min-width: 48em) {
    	
    	.blog:not(.has-sidebar) #primary article
    	{
    	  width: 100%;
    	}
    	body:not(.has-sidebar):not(.page-one-column) .page-header
    	{
    	  display: none;
    	}
    }
    Thread Starter runningdoves

    (@runningdoves)

    Hello Michael,
    Thank you for your answers. I have tried using both but unfortunately it didn’t change anything. I am a newbie so I may have done something wrong. Here’s where I added the css to:
    Twenty Seventeen Child: Stylesheet (style.css)
    /*
    Theme Name: Twenty Seventeen Child
    Theme URI: https://wordpress.org/themes/twentyseventeen/
    Template: twentyseventeen
    Author: Angela Jones Empowerment Ministries, LLC
    Author URI: https://angelalifecoach.com/
    Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
    Tags: one-column,two-columns,right-sidebar,flexible-header,accessibility-ready,custom-colors,custom-header,custom-menu,custom-logo,editor-style,featured-images,footer-widgets,post-formats,rtl-language-support,sticky-post,theme-options,threaded-comments,translation-ready
    Version: 1.3.1503259898
    Updated: 2017-08-20 20:11:38
    @media screen and (min-width: 48em) {

    .blog:not(.has-sidebar) #primary article
    {
    width: 100%;
    }
    body:not(.has-sidebar):not(.page-one-column) .page-header
    {
    display: none;
    }
    }
    */

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You need to put CSS outside of the comment tags /* and */. Comment tags are there to describe content inside your CSS file. That’s why you see the paragraph “Description: Twenty Seventeen brings your site to life with…”.

    Put your CSS here:

    
    */
    @media screen and (min-width: 48em) {
    
    .blog:not(.has-sidebar) #primary article
    {
    width: 100%;
    }
    body:not(.has-sidebar):not(.page-one-column) .page-header
    {
    display: none;
    }
    }
    
    Thread Starter runningdoves

    (@runningdoves)

    Andrew thank you for correcting my newbie mistake. I have placed the code in the correct spot and updated the file but it still refuses to display the full width of the page.

    /*
    Theme Name: Twenty Seventeen Child
    Theme URI: https://wordpress.org/themes/twentyseventeen/
    Template: twentyseventeen
    Author: Angela Jones Empowerment Ministries, LLC
    Author URI: https://angelalifecoach.com/
    Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
    Tags: one-column,two-columns,right-sidebar,flexible-header,accessibility-ready,custom-colors,custom-header,custom-menu,custom-logo,editor-style,featured-images,footer-widgets,post-formats,rtl-language-support,sticky-post,theme-options,threaded-comments,translation-ready
    Version: 1.3.1503259898
    Updated: 2017-08-20 20:11:38

    */
    @media screen and (min-width: 48em) {

    .blog:not(.has-sidebar) #primary article
    {
    width: 100%;
    }
    body:not(.has-sidebar):not(.page-one-column) .page-header
    {
    display: none;
    }
    }

    please add the CSS back into style.css of the child theme;

    to see the result, you might need to clear the browser cache – either by reloading the page (a few times) or whatever your browser needs…

    or check in a different browser, in a different computer.

    Thread Starter runningdoves

    (@runningdoves)

    Hi Michael and Andrew,
    First, thank you both for your help and patience. I see that the code is now working. I thought something was wrong because after changing it when I viewed my website in 2 different browsers outside of chrome nothing changed but now all is well (I use chrome, opera, and vivaldi at the same time on a regular basis). I’ll also remember to empty my internet cache when trying new code. As always I appreciate your help; people like you two make WordPress a non-scary software for a newbie like me.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You’re welcome, thanks for asking too. This thread will also act as a tutorial for anyone who also wants to do the same thing in future, so thank you 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to make my blog page full width’ is closed to new replies.