Link to home
Start Free TrialLog in
Avatar of Dan
DanFlag for United Kingdom of Great Britain and Northern Ireland

asked on

wordpress post get rid of side bar (theme twentysixteen)

When you have a page you get the use of the whole area, when it is a post you lose about 1/3 of the screen on the right to show who posted the post and when they did so. How do I get a post to render like a page and use the full width. Is there any way to say format posts as pages?
Avatar of Chris Jones
Chris Jones
Flag of United Kingdom of Great Britain and Northern Ireland image

Can I just confirm that you're attempting to get rid of the sidebar on the posts page of your theme?
Avatar of Dan

ASKER

I'm not sure it is the area on the right that shows the avatar category and poster name.
Hi, I think it's probably the sidebar, what theme are you using?

Generally you can turn off a sidebar for posts through the theme options, through the post it's self and occasionally through plugins.
I've found a pretty comprehensive howto "remove the sidebar in wordpress":
http://www.wpbeginner.com/wp-themes/how-to-remove-the-sidebar-in-wordpress/

However, I would warn you, it is really important to backup your site before attempting these steps. Some of them may differ depending on the theme you're using.

If you want to remove from all pages/posts etc you're going to need to either chose that from your theme options or edit the files as described in the "Removing Sidebars From Everywhere in Wordpress" section of the link I supplied above, essentially removing the code
<?php get_sidebar(); ?>

Open in new window

from a number of theme files.

If you're new to WordPress, you should definitely take the time to familiarise yourself with it before making any file edits.
Avatar of Dan

ASKER

I don't think it is the sidebar, as inspecting the CSS for the bit on the right shows:

@media screen and (min-width: 56.875em)
style.css?ver=4.8:37
.no-sidebar .entry-content {

Which I would guess means it is not to do with a sidebar
Could you show us a screen capture or link to it?
Avatar of Dan

ASKER

It is internal and not public facing so I can't.

I have just worked out that if I change this line from type-post to type-page, then everything works.

User generated image
The question now is how to change the way the CSS is auto generated to put in page not post.
Avatar of Dan

ASKER

Any ideas how to change the automatic CSS ?
ASKER CERTIFIED SOLUTION
Avatar of Chris Jones
Chris Jones
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial