- This topic has 5 replies, 2 voices, and was last updated 6 months, 1 week ago by Fernando.
September 21, 2022 at 3:57 pm #2350090Sandee
I am having some formatting issues with the content template I have created for a custom post type. There’s extra margin coming in from somewhere on the field under the headline OVERVIEW. I have the bottom margin there set at 10 just as it is with the other headlines and fields, but the OVERVIEW field seems to show more whitespace. Can you help me figure out why?
Also, I have a sentence at the bottom of the content template —
Stay tuned for more details as this work unfolds.
…that I need to appear on only some of the ‘projects’ with Projects being the name of my custom post type. Is there a way to do that with the block elements and ACF Pro?
Thank you for your help!September 21, 2022 at 7:13 pm #2350161Fernando Customer Support
A Block Element – Content Template is meant to be used for Archive Pages inherently. See: https://docs.generatepress.com/article/block-element-content-template/
It would be best to just use Block Element – Hook to add your fields and other stuff.
As for the whitespace, there’s an Empty Headline Paragraph under Overview.
If you use a Block Element – Hook, you should be able to resolve the other issue as well.September 21, 2022 at 8:51 pm #2350199Sandee
I’m not sure I understand since that’s what I did — I used a Content Template like the one you linked to. Am I missing something? I know what an archive page is, but that’s not what I’m trying to build here…though I will likely build one after the single post pages. I’ve linked to a couple of videos where I saw this technique.
It (a “project”) needs to be a whole page, so I’m not sure why I would use a hook when I’m not hooking it (because there are multiple fields as it’s a custom post type — i.e., I have more than one field to hook) anywhere. I’m sorry. I just am not sure I understand what you’re saying.
Thanks!September 21, 2022 at 9:07 pm #2350207Fernando Customer Support
Well, in general, the Content Template is used to style how posts appear in an Archive/Blog page. The page you linked is a single Custom Post type page.
The video you linked uses a Content Template for a singe Custom Post type page which works. However, you may also simply use a Block Element Page-Hero for instance and build those Blocks there. You can try this by creating a Page Hero, and copying and pasting the entire content of your Content Template there.
For the “Stay tuned for more details as this work unfolds”, you can create it with a separate Block Element and hook it somewhere at the bottom.September 21, 2022 at 9:18 pm #2350210Sandee
Ugh, yeah, my bad. I did have Hook selected. I didn’t even notice that. I’m sorry. Please accept my apologies if my tone was a bit testy and impatient…it’s late. 🙂September 21, 2022 at 9:33 pm #2350212Fernando Customer Support
No worries! I didn’t find your response have such a tone. We’re glad to help! 🙂
Let us know if you would need further assistance, or there’s anything else you’d need help with.
- You must be logged in to reply to this topic.