- This topic has 14 replies, 3 voices, and was last updated 3 years ago by
Ying.
-
AuthorPosts
-
March 28, 2023 at 6:20 pm #2586389
Dan Nguyen
Hi,
Is there a way to add a vertical separator between author and date on desktopI tried this solution from a previous thread but it didn’t work
.posted-on:before { content: "|"; padding-right: 5px; }Website is listed in the private field;
ThanksMarch 28, 2023 at 6:41 pm #2586407Fernando Customer Support
Hi Dan,
If you want to do this through CSS, here’s something you can try:
p.gb-headline.gb-headline-097d2609::before { content: "|"; margin-right: 20px; }The alternative way would be to add another inline Header Block in your Block Element, and add the separator through that.
March 28, 2023 at 7:13 pm #2586419Dan Nguyen
Hi,
How do I remove the extra block on mobile and tablet?March 28, 2023 at 7:16 pm #2586420Dan Nguyen
I figured out the above.
Is there a way to center the text instead of having it skewed to the right like thatMarch 28, 2023 at 7:33 pm #2586432Fernando Customer Support
Don’t place the Headline Blocks in a Grid. Just place them in one Headline Block.
Then, make all Headlines display – inline.
Then, center align the Container Block.
That should work.
March 28, 2023 at 7:57 pm #2586444Dan Nguyen
How do I use multiple dynamic content in one headline block?
When I insert it, it only allows me to choose one type of dynamic content, then the whole thing is blacked out
That is why I have 2 headline blocksMarch 28, 2023 at 7:58 pm #2586445Dan Nguyen
As you can see here
https://pasteboard.co/Ni67gAd62jCf.png
The dynamic options can no longer be selected to add an additional dynamic fieldMarch 28, 2023 at 8:13 pm #2586458Dan Nguyen
I try to follow this tutorial
https://docs.generatepress.com/article/block-element-post-meta-template/
However it looks like the option for Post Meta Element type is no longer availableMarch 28, 2023 at 8:39 pm #2586473Fernando Customer Support
Just assign one Dynamic data per Headline. If you want them in one line, set the Display to inline. Reference: https://docs.generateblocks.com/article/layout-options-overview/#display
March 28, 2023 at 9:16 pm #2586496Dan Nguyen
So I tried adding the using block and the second space is not displaying
March 28, 2023 at 10:00 pm #2586509Fernando Customer Support
It’s still on a Grid from my end. Have you tried changing the structure into one the holds all the Headline Blocks in one Container Block?
March 29, 2023 at 6:04 am #2587080Dan Nguyen
Is it still a grid now?
It should not beMarch 29, 2023 at 10:40 am #2587612Ying
StaffCustomer SupportIt is still a grid when I check.
Try clear the cache or diable the cache plugin.
March 29, 2023 at 11:02 am #2587644Dan Nguyen
It’s not a grid.
I’m not sure how to make it not a grid
As you can see in the private field, the space exist in the preview but doesn’t work on the live website.March 29, 2023 at 11:10 am #2587652Ying
StaffCustomer SupportAfter clearing cache I can see those meta elements are in the same container.
Now select the parent container of the meta elements, and set it to
display:flex,justify-content: center,column-gap:10px.For mobile, if you want the date wraps to the following line, set the container to
flex-direction: column.To hide the separator on mobile, add the
hide-on-mobileclass to the headline block.
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/Let me know if this works!
-
AuthorPosts
- You must be logged in to reply to this topic.