Archived topic
adding text to post and category title
6 replies · Started by Almog on September 4, 2021
i want to add a specific word before each post title in some of my categories. i have tried to do that with a page hero block element - i put dynamic post title and written the word before it but it didn't work.
then i tried to do so with a Header element and it did work (<h1>{{post_title}} my word</h1>), but i need it to be inside the content and not above it.
what souled i do?
Hi there,
If the block element page hero work then you just need to choose different a different hook:
https://docs.generatepress.com/article/block-element-page-hero/#quick-hook-select
Let me know if this helps :)
the block element page hero didn't work, the Header element worked.
how can i add my post title specific text with block element? i want to make a <h1>my text here {{post_title}} or here</h1>.
i have put a dynamic post title and written the word before it but it didn’t work, what am i missing?
Hi there,
you can only add Before Text to the Title in the Block Element.
When you select the Dynamic Text Type: Title, you will see an additional field called before text just add the text there.
Great! it worked
thanks David, it could be a great improvement to the next versions to add also the after text in the dynamic options.
For sure - i believe that is on our list :)
Glad to be of help