- This topic has 3 replies, 2 voices, and was last updated 4 years, 1 month ago by
Ying.
-
AuthorPosts
-
April 13, 2022 at 10:50 am #2187928
Michelle
Hello,
Is there a step-by-step tutorial somewhere on how to create the post meta with author gravatar as shown on the Dynamic Block Elements page?
https://docs.generatepress.com/article/block-element-content-template/
I am so confused about what element I need to use (Header Element? Block Element? I am currently using a hook element for my page title?) and what blocks I am supposed to be using – I tried doing something with the container blocks and Dynamic Content/Dynamic Image blocks but I am really struggling on figuring out how to make it so the Author Gravatar, Post Author, Post Date, are all in-line and I can’t seem to find any blocks to put the post author or date? How do I control where this shows up in relation to the title of the post?
I’ve linked to the example post – I am trying to figure out to make it so my featured image, title + author meta stuff all show up in the same element for easy editing + changing the display order! I want the post title to be full-width and then all of the meta/image/content to have a sidebar. Thank you for your help!
I have Generate Blocks Pro + Pro version of GeneratePress.
April 13, 2022 at 11:04 am #2187938Ying
StaffCustomer Supportso my featured image, title + author meta stuff all show up in the same element
1. The post title has to be in its own element if you want it to be full width, you can use a
block element - hook, chooseinside_site_containerhook.2. The others can be in one
block element - content template, set its location to post > all posts.It will be:
– Dynamic image block
– Container block with affiliate text
– Headline block (post date) + Headline block (post author)
– Dynamic content block (choose content)To learn how to align meta in one row, check the video in this link, it was to show post meta template, but it will work in
content templateas well.
https://docs.generatepress.com/article/block-element-post-meta-template/April 13, 2022 at 11:29 am #2187963Michelle
Thank you for the quick response + clarification!
If I want the post title, meta + featured image full-width, and then the content by itself with a sidebar, what element would I use for that? I really do not want the title by itself as a hook as it makes things messy if I decide later to put the featured image above the title.
Is it possible to just create some kind of template for single posts using GeneratePress elements + blocks? Would that be a layout? I don’t necessarily need a true “sidebar” layout – I just need a column next to the content where I can put sidebar blocks (search bar, author bio, related links, advertisements, etc.) – so I could just make it all one full page.
In the past, I would have just hardcoded this in a child theme template itself (single.php) but I am really trying to figure out how to use and play nice with blocks and FSE and I’m so confused – thank you for being patient with me!
April 13, 2022 at 11:47 am #2187975Ying
StaffCustomer SupportIf I want the post title, meta + featured image full-width, and then the content by itself with a sidebar
Use block element – page hero:
https://docs.generatepress.com/article/block-element-page-hero/I don’t necessarily need a true “sidebar” layout – I just need a column next to the content where I can put sidebar blocks (search bar, author bio, related links, advertisements, etc.) – so I could just make it all one full page.
That’s doable, just make sure all the widgets in sidebar currently have block version so you can add them into the content template.
You can set the singe post to full width using a layout element.https://docs.generatepress.com/article/layout-element-overview/
-
AuthorPosts
- You must be logged in to reply to this topic.