Archived topic
Inserting Post Title in a Block Element
3 replies · Started by Samuel on December 6, 2020
Is it possible to insert the post title dynamically in a block element or do I need to create my own shortcode to do this? I assume I need to create a shortcode but I believe dynamic elements are coming either via GPP or GB pro?
When doing this is there a way to remove the title element GP generates on the post or do I just need to hide it via css?
Thanks!
Hi,
By default, Gutenberg Editor doesn't have a "Title" block that dynamically displays the text title.
That said, you either get a plugin that dynamically displays the title, of make a shortcode of similar purpose.
When doing this is there a way to remove the title element GP generates on the post or do I just need to hide it via css?
You can use the "Disable Element" feature of GP Premium for this:
https://docs.generatepress.com/article/disable-elements-overview/
You can also use the Layout Element which also uses the Disable Element module.
https://docs.generatepress.com/article/layout-element-overview/
thank you!
thank you!
No problem. :)