- This topic has 12 replies, 3 voices, and was last updated 6 years, 4 months ago by Leo.
-
AuthorPosts
-
December 16, 2017 at 9:00 am #450931Bert
Hi Tom,
hi Leo,since a couple of days I am trying to lower the distance between the featured images on the frontpage (separate containers, no masonry) and the headline of the article. Can’t figure it out ๐
Also I dind’t find any suggestion in the forum, so I thought I ask you guys.
I am sure for you it’s a simple thing, right?
Thanks
BertDecember 16, 2017 at 9:20 am #450947LeoStaffCustomer SupportHi there,
Assuming your featured image is on top of the post title, try this CSS:
.post-image-above-header .inside-article .post-image, .post-image-above-header .inside-article .featured-image { margin-bottom: 1em; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Can you link me to the site if it doesn’t work?
December 17, 2017 at 1:59 am #451265BertThank you Leo,
but that was not working.
I did a screenshot for you so that you can see what my challange looks like:
So here is the Frontpage of an website with all the new articles:
You can see the huge space beween the headline and the featured image.
What I try is to make it look like this:
As I mentioned the frontpage has separate containers and no masonry.
Any idea?
Thanks Leo
December 17, 2017 at 9:32 am #451485TomLead DeveloperLead DeveloperDid you adjust the 1em value to something smaller? If so, can you link us to the page so we can take a look?
December 17, 2017 at 9:07 pm #451803BertThank you Tom.
Yes, I even tried 10px and 0px but it made no difference.
I am going to send you the url by mail.
Cheers,
BertDecember 17, 2017 at 9:08 pm #451804LeoStaffCustomer SupportYou can edit the original post and use the private URL field that only Tom and myself can see.
December 17, 2017 at 9:11 pm #451806LeoStaffCustomer SupportMy CSS above should work but I don’t see them being added.
Maybe try clearing WP Super Cache.
December 17, 2017 at 9:12 pm #451807BertThanks Leo,
I just edited the url field and saw that the url was already included?
Anyway, now it is available.
Cheers,
bertDecember 17, 2017 at 9:15 pm #451811LeoStaffCustomer SupportYup I added it in ๐
See my answer above: https://generatepress.com/forums/topic/distance-headline-featured-image/#post-451806
December 17, 2017 at 9:47 pm #451828BertHi Leo,
so I included the this lines into my styles.css
.post-image-above-header .inside-article .post-image, .post-image-above-header .inside-article .featured-image { margin-bottom: 1px; }
I cleared wp cache and now look for your self…
Hmm…
December 17, 2017 at 10:15 pm #451838LeoStaffCustomer SupportNow I see it but it’s being overwritten.
Try this instead:
body.post-image-above-header .inside-article .post-image, body.post-image-above-header .inside-article .featured-image { margin-bottom: 1px; }
December 17, 2017 at 10:25 pm #451845BertWhat can I say….
THANK’s A MILLION!!!
This snippet worked perfectly :))
Thank you very much Leo for helping me out
December 18, 2017 at 5:18 am #452044LeoStaffCustomer SupportNo problem!
-
AuthorPosts
- You must be logged in to reply to this topic.