Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

How do I make get rid of white space at top of page and make default page width wider on Twenty Sixteen Wordpress theme

Posted on 2016-08-23
Last Modified: 2016-08-26
Hi All

I am using WordPress version 4.5.3 Twenty Sixteen Template on this site - http://www.emsite.co.uk/

I would like to extend the default width of the homepage ONLY so I can fit more links on there, maybe 5 across....  I did remove the page title and moved the widgets to the bottom of the page but would prefer to not to do this.

I have also looked for specific custom templates but would rather stay with a good stable wordpress template that is more likely to be supported.

I have full access to all remote files but not too familiar on where to find certain code within which PHP file
Question by:IM&T SRFT
  • 3
  • 2
  • 2
LVL 109

Accepted Solution

Ray Paseur earned 250 total points
ID: 41767507
I think the thing you want is called a "child theme."  Here are some links to help you get started.

Probably the best references...

Also, usually pretty good...
LVL 11

Assisted Solution

by:Radek Baranowski
Radek Baranowski earned 250 total points
ID: 41768258
Creating child theme is certainly a good idea, as Ray suggested, this way you keep your original one and only modify styles/templates in the separate theme you can just get rid of if anything goes wrong.

The second tool you need to get used to is Chrome's F12 Developer tools -> Ctrl-Shift-C page element picker - it lets you point at any page fragment and discover it's definition like div, id, css etc. and EDIT it live (of course just for testing purposes, to store it you'd need to edit wordpress template itself in template editor). It's a great way to learn about template construction in a way of reverse engineering.

quick glance using above tells me you need to modify the following styles:

#vskb-four ul:nth-of-type(4n+1) {    <---- change to 5n or 6n depending on coulmn number you want
    clear: left;

Open in new window

#vskb-four .vskb-cat-list {
    width: 23.5%;  <--------- change to relevant percentage, for 6n above it would be ~16.5%
    margin: 0 2% 20px 0;
    padding: 0;
    float: left;
    background: none;

Open in new window

or create new ones vskb-six or something and assign them to page elements.
Hope this helps, radek
LVL 109

Expert Comment

by:Ray Paseur
ID: 41768705
Apologies... Copy / Paste error.

Also, usually pretty good...
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.


Author Comment

ID: 41769036
Thank  you and Radek

I think for purpose of learning and not breaking a site now or in the future  will opt for the child theme approach

However Radek - Excuse my stupid question but when I go to editor (RTL/STYLE css) or  the google inspect tool  am unable to find the code you have quoted above, however,I was able to change the margin settings on the fly.
LVL 11

Assisted Solution

by:Radek Baranowski
Radek Baranowski earned 250 total points
ID: 41769051
Yeah but this is just temporary until you reload page.
Run developer tools and use this element picker tool. Then click on this 4 column part until you see the style i gave as an example in the detail window on the right/bottom.  Element picker should show you an outline of the element you hover over with your cursor.

Author Comment

ID: 41769059
A thank you, I get it  now will scroll through to find the values :-)

Author Closing Comment

ID: 41771403
Thank you very much for your advice and assistance.

I will spend some time now looking at Child Themes

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The viewer will learn how to count occurrences of each item in an array.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question