Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

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

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
0
IM&T SRFT
Asked:
IM&T SRFT
  • 3
  • 2
  • 2
3 Solutions
 
Ray PaseurCommented:
I think the thing you want is called a "child theme."  Here are some links to help you get started.

Probably the best references...
https://codex.wordpress.org/Child_Themes
https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

Also, usually pretty good...
https://codex.wordpress.org/Child_Themes
0
 
Radek BaranowskiFull-stack Java DeveloperCommented:
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


and
#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
0
 
Ray PaseurCommented:
Apologies... Copy / Paste error.

Also, usually pretty good...
http://www.hongkiat.com/blog/wordpress-child-themes-dev/
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
IM&T SRFTAuthor Commented:
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.
0
 
Radek BaranowskiFull-stack Java DeveloperCommented:
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.
0
 
IM&T SRFTAuthor Commented:
A thank you, I get it  now will scroll through to find the values :-)
0
 
IM&T SRFTAuthor Commented:
Thank you very much for your advice and assistance.

I will spend some time now looking at Child Themes
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now