How to change margins of pages, but not the header?

[ad_1]

I don’t want the text of my articles spanning all the way across the screen, I want them with decent margins to keep them compacted in the middle more. When I change container size in wordpress though it squeezes the header, which I DO want to spread across the screen.

Tips?

[ad_2]
2 Comments
  1. You’ll need separate wrappers for the content and the header.

    Typically I do something like this:

    <div class=”container page-head”>
    …header content
    </div>
    <div class=”container”>
    <main>
    <article> <!– apply margin to this –>
    …page content
    </article>
    </main>
    </div>

  2. This is a theme issue. Either look at your theme documentation to see if it’s possible to do what you want, or find another theme that does. Of course you could always create a child theme and modify the template files to do whatever you want as well.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer