Hey there @ageingdj – I’ll answer your questions separately:
1>Is there a way to remove/hide the “Edit” column on the left of the posts? – this will centre the images.
Only logged-in users see the word “Edit.” I think you mean the column where the category is displayed. This CSS should remove that column and also widen the main column on single posts:
.single .entry-meta {
display: none;
}
.single #primary {
width: 100%;
}
Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated.
An easy way to add custom CSS is to use the CSS editor included in the Customizer as of WordPress 4.7. Head to Appearance > Customize > Additional CSS to add your custom CSS.
Hi Kathryn,
Thanks or your reply.
Applying this css only moves the image placeholders to the left (still not centre though) but leaves the text(formattted central) unmoved.
It also seems to be applying to every post.
The page is https://ageingdj.com/2017/11/10/a-few-autumn-images/ and I’m using Firefox.
Sorry for the delay in answering the second part of your question – I wanted to get a second opinion on something before replying.
2>How do I increase the size of the images/galleries on the posts?
Widening the content width (i.e. for images and galleries) should make them fill your new content width – that’s why it doesn’t look centered now; the column width has changed, but you haven’t yet widened the width of the galleries and other media
In order to change the media content width, you’ll need to first create a child theme, as this can’t be done with CSS alone. You’d then add this to your child theme’s functions file:
if ( ! isset( $content_width ) ) {
$content_width = 882; /* pixels */
}
I took the new content width from the new width of your single posts page.
You may need to run a Regenerate Thumbnails plugin if your site doesn’t pick up the new width right away. I just tested in a Harmonic child theme and the gallery’s width updated right away.
An alternative to a child theme is to put the same function in a functionality plugin instead.
It also seems to be applying to every post.
Correct – all the code I’ve given you applies to all single posts, not just one specific one.
Are you trying to target only one post? You’d mentioned posts (plural) so I assumed you wanted the same effect on all. While we could modify the CSS to apply to that post only, it’s not easily done for the content width function.
Let me know what you’d like to do.
Hi Kathryn,
Thanks for all your time.
I’ve never heard of functionality plugins and I’ll give that a go next week.
As for targeting a single post/page, I think you’re right and it would make more sense to have all the posts aligning the same.
Thanks
Bob
You’re very welcome and good luck!