Post/page text body width

Viewing 5 posts - 1 through 5 (of 5 total)
  • #20091
    Viktor
    Participant

    Dear Daniel,

    I’ve started adding pages and posts to the database and it seems to me that for some reasons, the body text is a lot wider than it is shown in the demo pages and I can’t figure out how to have those nice margins on the left and right side when I’m using a layout that is not featuring a sidebar.

    Currently, my body is 1000px wide but I’d like to have the same look as the demo. I’ve gone through the tutorials but I didn’t see the trick, maybe I made a mistake at the setup, maybe it is being done with the bootstrap shortcodes (but I didn’t see any reference for it), so I’m quite lost with it.

    I’d welcome any suggestions!

    Many thanks,

    Viktor

    #20126
    Daniel Tara
    Keymaster

    The wide margins are displayed only on pages with boxed design. It does not apply to single posts or pages with full screen design. If you want it to you can add the following styles to your custom CSS:

    .single.layout-full-width .hentry,
    .single.layout-full-width .archive-header {
    	max-width: 720px;
    	margin-left: auto;
    	margin-right: auto;
    }
    
    .single.layout-full-width .content-area > :first-child,
    .single.layout-full-width .content-area > .hentry:first-child {
    	padding-top: 90px;
    }
    
    .single.layout-full-width .content-area > :last-child {
    	padding-bottom: 90px;
    }
    #20197
    Viktor
    Participant

    Hi Daniel,

    Many thanks for the suggestion, for some reason, nothing changes when I put the code neither into the custom css textbox in the admin nor my child theme’s style.css file. I’d prefer the latter option because it seems to be a cleaner solution for me but anyway, there seems to be something wrong with it in my side. πŸ™‚

    I’ve even tried adding !important values into the css but nothing happens.

    Cheers,

    Viktor

    #20208
    Daniel Tara
    Keymaster

    Sorry, I made a typo. Please see the corrected code in the post above.

    #20215
    Viktor
    Participant

    Many thanks, it helps a lot to use the bootstrap carousel in posts as well (it used to look quite weird with the wide layout). πŸ™‚

Viewing 5 posts - 1 through 5 (of 5 total)

Tagged: 

You must be logged in to reply to this topic.