Site logo

Archived topic

Layout - image size and sidebar

6 replies · Started by Devesh on September 18, 2018

Viewing posts 1–7 of 7

How do i make all blog post images including featured image of same size (both width and height). I am not able to maintain same size using "edit image" option in wordpress. Also, want all my thumbnails on homepage to have the same size

Also, how do i keep the right sidebar only for homepage. it takes it by default for all pages including blog posts. Also, is there any way to add a border for the sidebar.

Hi there,

where possible it is best to use all the same size images. But you can resize the featured images in Customiser > Layout > Blog > Featured Images ( Archives )

Sidebars can be set in the Customiser for Pages / Posts and Blogs.

For the border, do you want this be on all sides of the individual widgets or the entire sidebar length?

Using Customiser > Layout > Blog > Featured Images ( Archives ) doesn't seem to be working.
for the post i tried to set the length to 315, but there is no change if I use this option.

For sidebars, is there no single option to disable it for all pages/post other than homepage.
I want to keep sidebar only for homepage. I cant keep using the customiser to disable it for each and every page. Any css that will help

i want to apply the border only to sidebar widget.

Awaiting a reply to this query.

Hi there,

Did you set the width or height to 315px? It should work for width but not for height as your original image is only 234px in height:
https://moneyjigyasu.com/wp-content/uploads/2018/08/80C-5-Myths-Busted-e1537293371530.png

If you want to use sidebar for home page only, the easiest option is to set Content (no sidebars) on all three options here:
https://docs.generatepress.com/article/sidebar-layout/

Then use the layout metabox on home page to set to Content/Sidebar:
https://docs.generatepress.com/article/sidebar-layout/#different-sidebar-layouts-for-individual-pages-and-posts

Try this CSS for border:

.sidebar .widget {
    border: 1px solid #000;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

Make sure to clear caching plugin when you make the above changes as well.

Let me know if this helps :)

Thanks. How do i change the border color of the sidebar

Hi there,

this code that Leo provided:

.sidebar .widget {
    border: 1px solid #000;
}

Change the #000 to another hex color.

This archived topic is closed to new replies.