Archived topic
Set blog page to only show clickable image
22 replies · Started by M on October 14, 2021
Thank you. I tried that and it did not work. Maybe I will need to purchase GB pro.
How can I add text at the top of a “content template” element? When I tried it replicated the text for each blog post image.
Thank you for your help.
How can I add text at the top of a “content template” element? When I tried it replicated the text for each blog post image.
I'm not sure I understand your question. Are you trying to add the post title?
If so, watch this video carefully, you can start from 7:40, it demonstrate how to add title to the dynamic content template.
https://docs.generatepress.com/article/block-element-content-template/
If not, can you explain a bit more? It's really difficult for us to imagine the problem without seeing the live site.
I am sorry I should have included a screenshot.
In the "content element" element I have the blog post "card" set up as in the video you provided. At the top of this page, I would like a brief text intro. When I add the text to a new container within the "content element" element, the text just replicates with the blog post "card" images instead of being just centered at the top.
I hope this makes sense. I attached two images.
Oh I see, in this case, you should NOT add anything into this block element - content template.
Are you using a block element adding the " Italian grammar ...." text?
If so, you can add the intro text to the same block element.
If not, you can create a block element -hook, add the intro text to that block element, choose generate_after_header as hook, choose blogas location.
Let me know :)
The hook works (see image) however the text is not formatted as it should be.
Why does it not work properly when added to the content template? If I could add it to that it would be much easier to have it formatted as it should be. I added the text to the "same block element" as you wrote and it repeats the text as in the prior screenshot.
Thank you.
The hook works (see image) however the text is not formatted as it should be.
If you are using a block element, you should be able to style the text in the block editor.
I added the text to the “same block element” as you wrote and it repeats the text as in the prior screenshot.
That's how a content template work.
Thank you for your help! I got this figured out now.
Glad to hear that :)