- This topic has 31 replies, 4 voices, and was last updated 3 months, 3 weeks ago by
Christiano.
-
AuthorPosts
-
October 6, 2022 at 12:48 am #2364892
Fernando Customer Support
The PHP Snippet is currently not activated. Can you activate it first, and we’ll check again afterwards?
October 7, 2022 at 2:44 am #2366003Christiano
Yes, I left it not activated because the PHP doesn’t work…
Now it is activated, you could check.
THANKS! π€
October 8, 2022 at 4:53 am #2366948David
StaffCustomer SupportHi there,
just to be clear:
1. you do NOT want to show the manual Excerpt
2. Instead you want to show the first 250 words of the post contentIs that correct ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 11, 2022 at 2:40 am #2369648Christiano
Well, yes, I would like to show a certain amount of words to have all the “READ MORE” buttons aligned.
October 11, 2022 at 5:13 am #2369763David
StaffCustomer SupportIf you want to align the buttons, then add this CSS to your site:
.wp-block-post-template.is-flex-container li { display: flex; flex-direction: column; } .wp-block-post-template.is-flex-container li :last-child { margin-top: auto; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 11, 2022 at 7:08 am #2369861Christiano
Hi David, thanks for you help.
What can I do? When I pasted your code the plug-in give me that error…
Don’t Panic
The code snippet you are trying to save produced a fatal error on line 1:syntax error, unexpected ‘.’, expecting end of file
The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.
October 11, 2022 at 10:24 am #2370200Ying
StaffCustomer SupportHi Christiano,
The code David provided is CSS code, it seems you’ve added to a PHP code plugin.
Try adding this code to customizer > addtional css.
October 12, 2022 at 12:21 am #2370672Christiano
Oh… π€
Now it works like charm indeed… βΊοΈ
Thanks again for your irreplaceable help! ππΌ
October 12, 2022 at 12:30 am #2370678Christiano
Counterorder! π¬
I added a little bit of space between the lines and all the alignment is gone… π
October 12, 2022 at 12:35 am #2370682Fernando Customer Support
Hi Christiano,
For reference, can you re-share the link to the site in question?
October 12, 2022 at 12:39 am #2370685Christiano
Hi Fernando, sure!
October 12, 2022 at 12:43 am #2370688Fernando Customer Support
I see. Can you remove the Spacer Block first, and then let us know where exactly you want spacing? We might need a different approach.
October 12, 2022 at 1:13 am #2370711Christiano
Sure.
I simply would like to have more space between the lines of posts…
THANKS IN ADVANCE! ππΌ
October 12, 2022 at 1:19 am #2370717Fernando Customer Support
You can try adding this in Appearance > Customize > Additional CSS:
.gb-container-eaa30a35 .wp-block-query ul.wp-block-post-template { row-gap: 50px; }
Alternatively, you can use a GB Query Loop Block instead: https://docs.generateblocks.com/article/query-loop-overview/
There’s an option to add spacing in the GB Query loop Block with no code needed.
October 12, 2022 at 2:36 am #2370777Christiano
Hi Fernando, can I merge your code with David’s one?
Like that:
.wp-block-post-template.is-flex-container li {
display: flex;
flex-direction: column;
}
.wp-block-post-template.is-flex-container li :last-child {
margin-top: auto;
}
.gb-container-eaa30a35 .wp-block-query ul.wp-block-post-template {
row-gap: 50px;
} -
AuthorPosts
- You must be logged in to reply to this topic.