- This topic has 15 replies, 3 voices, and was last updated 4 years, 7 months ago by
Ying.
-
AuthorPosts
-
August 26, 2021 at 3:06 am #1908857
Oliver
My front page is a series of WP Show post lists. I would like the padding of said WP show Post lists be the same as the one in the blog archive so it looks the same.
I don´t have a specific blog page but when a category or author or tag is clicked, you can see that the blog archive has a narrower padding than the posts generated by the WP Show posts in the front page.
August 26, 2021 at 3:10 am #1908859Oliver
Interestingly i also have recommended posts after each posts also created using WP Show post, and the padding there seems to match the padding of the blog archive as can be seen here:
August 26, 2021 at 6:12 am #1909008David
StaffCustomer SupportHi there,
is it the spacing between the Image, Title and Excerpt ?
August 26, 2021 at 7:24 am #1909089Oliver
Hi David! exactly, in the front page the space to the side of each post (title, image & excerpt) is wider than in the blog roll, as seen when you click on a posts category, an author or a tag.
August 26, 2021 at 10:17 am #1909458Ying
StaffCustomer SupportHi Oliver,
Try this CSS:
.home .inside-article h4.wp-show-posts-entry-title { font-size: 20px; line-height: 1.2em; } .home .inside-article .wp-show-posts-entry-content,.home .inside-article .wp-show-posts-entry-summary, .home .inside-article .wp-show-posts-image.wpsp-image-center, .home .inside-article .wp-show-posts-entry-header { margin-bottom: 2em; } .home .inside-article .wp-show-posts-inner { padding-bottom: 30px; }And go to the WP show post list, set the Columns gutter to
30pxinstead of3em.Let me know 🙂
August 26, 2021 at 11:11 am #1909489Oliver
Ying thanks a lot, it worked. The only thing still off is the blank space after the wp show posts lists. For some reason there is more white space under some wp show posts lists than under others. It was already like that before adding your CSS and with the `.home .inside-article .wp-show-posts-inner {
padding-bottom: 30px;
}`, the blank space difference between wp show posts lists is even bigger.I tried adding !important; but nothing. Would logging in make it easier for you to find out what might be wrong?
August 26, 2021 at 11:16 am #1909496Oliver
Could it have something to do with the space over the separators?
August 26, 2021 at 1:42 pm #1909590Ying
StaffCustomer SupportYes, that’s the margin of the separator.
Try this CSS to remove the top margin of the separator:
.home hr.wp-block-separator.has-text-color.has-background.is-style-wide { margin-top: 0; }Let me know 🙂
August 26, 2021 at 2:31 pm #1909619Oliver
It worked but yet again two wp show posts lists have a narrower space to the separators than the other two.
Using the inspector i can see that two separators have different margin values. can i style just one separator using some kind of ID or something? if not, I´ll just keep playing with the code you provided me with and find a middle groundAugust 26, 2021 at 2:50 pm #1909637Ying
StaffCustomer SupportWP separator block doesn’t come with an ID.
Can you tell me which separators you want to target?
I can give it a try 🙂
August 26, 2021 at 2:57 pm #1909645Oliver
now I´m not quite sure because after adding the margin top = o i realized that they kind of all look off. I would say that I would like the last three separators (from 4 in total), have the same padding/margin on top and bottom as the first one, right after the first WP Show Posts list that is showing only one post called Tempor invidunt ut labore
August 26, 2021 at 3:12 pm #1909651Ying
StaffCustomer SupportGive this a try:
.home .gb-grid-wrapper-add95afa + .wp-block-separator, .home .gb-grid-wrapper-247fcc16 +.wp-block-separator, .home .gb-grid-wrapper-28ab0abf + .wp-block-separator { margin-top: 0; margin-bottom:40px; }Remove this CSS:
.home hr.wp-block-separator.has-text-color.has-background.is-style-wide { margin-top: 0; }August 26, 2021 at 4:03 pm #1909691Oliver
Ying it looks a lot better than at the beginning but still the white space before and after all separators is not the same throughout. Specially the third separator has more white space on top than the other three .
August 26, 2021 at 4:41 pm #1909701Ying
StaffCustomer SupportYou have several empty paragraph blocks disturbing the space which needs to be removed:
1.https://www.screencast.com/t/RJxFpy3Oy
2.https://www.screencast.com/t/JnRp8KWoyOnce the paragraph blocks are removed, replace this CSS:
.home .gb-grid-wrapper-add95afa + .wp-block-separator, .home .gb-grid-wrapper-247fcc16 +.wp-block-separator, .home .gb-grid-wrapper-28ab0abf + .wp-block-separator { margin-top: 0; margin-bottom:40px; }with this:
.home .gb-grid-wrapper-add95afa + .wp-block-separator, .home .gb-grid-wrapper-247fcc16 +.wp-block-separator, .home .gb-grid-wrapper-28ab0abf + .wp-block-separator { margin-top: 0; margin-bottom:60px; } .home section#wpsp-136 + .wp-block-separator, .home .gb-grid-wrapper-add95afa + .wp-block-separator { margin-top: 30px; margin-bottom: 60px; }August 27, 2021 at 4:43 am #1910000Oliver
I can´t explain why there were two p blocks since I couldn´t even see them in gutenberg. Since the front page is made out of 10 blocks, I ended up creating the front page again.
At the end, it still doesn´t work, this time the first and last separator have the same white space amount at the top, while the second and third, both share same amount also.
I´m going to leave it as it is because we managed to make the wp show posts look like the posts in the blog roll which was the main issue.
I really appreciate your help! Have a nice day!
-
AuthorPosts
- You must be logged in to reply to this topic.