• Hello, I am using the Twenty sixteen template. I would like the page width to be smaller so more of my background image shows. I have searched for this resolution on the internet and WP forums. What I have found is copy the page.php and I renamed it to page-home.php. I can not find where to edit the page width. I have also found, make a custom page. That i have not found where to do this. I have added a new page but there are no attributes to edit. I changed my theme and found the twenty fourteen template has the page attribute option but the other themes don’t.
    My goal is to find a way to either create a custom page that I can change the page width or edit the copy that I made of the original page.php
    Thank you in advance for any informtaion.

Viewing 1 replies (of 1 total)
  • be careful using page-home as a template to be used site wide. As I understand it, WordPress will use it only for the front page. Better to use page_home, or better still use the naming conventions from this post

    Correct Handling of Static Front Page and Custom Blog Posts Index Template

    Create a child theme if you have not done so or you will lose all changes when WP updates.

    In it you will have style.css This is where you will control page width. If you want the changes to be global, you won’t need a new template to do this. If you want the changes to only effect some pages, you will need to target that template.

    Use Firebug in Firefox or Inspect (right-click) in Chrome to identify the elements you wish to change. They will be in the media queries section, and will need to be changed in several places to reflect the different screen widths.

    I wanted a template with a wider content area and targeted .site content and .content-area, padding and margins. You have to be careful with changing width as it can effect other layout elements, and wether or not you have a sidebar showing.

    good luck

Viewing 1 replies (of 1 total)

The topic ‘Changing the Page width’ is closed to new replies.