- This topic has 11 replies, 3 voices, and was last updated 7 years, 3 months ago by Tom.
-
AuthorPosts
-
December 29, 2016 at 10:34 am #258827Candee
I would like to get a post image to align and display like it does on this website: FrugalMom.net. Each post has an image aligned right and it makes for a very pleasing appearance on the blog page. Is this possible to do an if so, how. I tried working with “blog” settings but can’t get it to do the same thing.
Thank you.December 29, 2016 at 12:20 pm #258890TomLead DeveloperLead DeveloperHi there,
This article might help: https://docs.generatepress.com/article/adjusting-the-featured-images/
The position and alignment options are what you’re looking for.
Let me know if you need more info π
December 29, 2016 at 1:37 pm #258928CandeeThe article did not help. It seems that an image can only be placed above or below the HEADER — not the page title. If I paste an image in the post via “insert image,” it does not show in the post excerpt. I know there must be a work-around for this, but I have no idea how to do it. I am trying to get an image to appear to the right or left side of the post excerpt as in the website FrugalMom.net.
December 29, 2016 at 2:52 pm #258956LyleHi Candee,
I’m sure that Tom will have a more elegant solution, but here is what I was able to come up with that does the job.
– Customizer > Blog > Post Image > Post Image = Show, Post Image Position = Above Header, Post Image Alignment = Right, Post Image Width = 200px, Post Image Height = Auto (remember to click the Apply image sizes)
– add this CSS (via Tom’s excellent Simple CSS plugin):
.post-image-aligned-right .post-image { margin-top: 105px; margin-left: 1.2em; float: right; }
This gets the featured images to align to the top of the excerpt as in the site you posted π You’ll have to adjust for your images, etc. but it works π
Cheers!
LyleDecember 29, 2016 at 7:53 pm #259008TomLead DeveloperLead DeveloperLyle – the first part of your post should be all that’s necessary:
Customizer > Blog > Post Image > Post Image = Show,
Post Image Position = Above Header,
Post Image Alignment = Right,
Post Image Width = 200,
Post Image Height = Auto (remember to click the Apply image sizes)However this will only work if you’re using featured images: https://docs.generatepress.com/article/adding-featured-images/
Doing this will give you the exact look you’re hoping for.
December 29, 2016 at 8:03 pm #259012LyleTom, I could have sworn when I first looked and the example site that the top of the image was aligned with the top of the excerpt, hence the CSS π
December 29, 2016 at 8:06 pm #259013TomLead DeveloperLead DeveloperIt will only align with the top of the excerpt if the position is set to “Below Header” (BTW, that’s a typo, it should be Below Title and Above Title).
If it’s set to “Above Header”, it will align with the top of the title.
December 29, 2016 at 8:11 pm #259016Lyle… and so it does! π You learn something new every day π Thanks!
BTW, check the second line in the Adjusting the Featured Images doc π
December 30, 2016 at 12:29 pm #259228CandeeOK, I think I got it to work, but now it really screws up the full post. What I end up with if I set the position to right or left is a misplaced hero image on the full post. I would like for the image not to appear on the post at all. In the example website, the image in the excerpt does not appear on the full post. It’s obviously possible to do this, but again, I have no idea how. Any ideas? BTW, thanks for all the help thus far.
December 30, 2016 at 8:52 pm #259333TomLead DeveloperLead DeveloperThose settings shouldn’t affect the single post featured image at all, but you can remove it in Customize > Layout > Page Header in the Single Post Page Header option.
January 3, 2017 at 3:53 pm #260389CandeeThank you everyone for all you help. I finally got it to work all the way around. Sorry for being such a dummy. This theme is all new to me, and there is so much to learn about it.
January 3, 2017 at 7:09 pm #260437TomLead DeveloperLead DeveloperGlad you got it working! Always happy to help π
-
AuthorPosts
- You must be logged in to reply to this topic.