I am using the Single Blog post layout template as a starting point to build my Portfolio item layout template.
I have seen all the videos, but some details are not clear to me.
For some reason, I am missing one part of the layout on my template.
Not sure if it is related to the fact that I am using a Portfolio item, not blog post. I already went to see the Looper Provider and Consumer on that Div but I am not finding the problem.
Howdy, @PanInternational! Thanks for writing in and great question…that part of the “Postmodern Pixels (Single)” template was intended to be used specifically for blog posts, as you can see that there is a link back to the blog first, and then the published date. Because of this, we didn’t want that information showing up in the template if a user happened to assign it to another context, such as a Page, so we included an Element Condition on the Div Element surrounding that content:
You can see from that screenshot that the Div Element is only to be shown if the Post Type the Layout is assigned to is a Post, which means that it would not show for pages, portfolio items, products, et cetera. If you have not done so yet, we highly recommend you take some time to read through our resources regarding Element Conditions as they are a powerful piece to the Layout building puzzle:
So, if you’d like that meta line to appear on all templates you use this Layout on, you would need to remove that condition. However, in doing that, I would also recommend you remove the blog link and divider, as those really only make sense in the context of a blog post. So if you remove those pieces and remove the Element Condition and just keep the date, you’ll now have a template that you could assign anywhere. And of course, you could introduce other conditional pieces that you may wish to show in certain contexts as well…there are a lot of options to explore with the Layout Builder and Element Conditions. Cheers!
Hi @kory,
Thank you for your reply.
That makes sense. Forgot to check the condition on the div element.
I guess it will take some time to get used to all the complexity of the new layout builder.