Archived topic
Cannot disable content title when a single page content template is in use
4 replies · Started by Meghan on April 12, 2021
Hello
I am using beta 3 of GP premium version 2.
I made a content template for a single page that displays a dynamic h1 page title and dynamic content underneath. Now that I have done that it does not seem possible to disable the content title for individual pages on any page that uses that template. I don't know if this is by design or a bug, but it would be great to be able to control elements individually.
Loving GP theme builder!
Thanks, Meghan
Hi there,
the Layout Element applies to the Theme elements - so it won't recognise one you add to a Content Template ( we'll have to think how best to go about that ).
Options:
1. create two separate templates - one with the Title and one without the Title - and set the Display Rules accordingly.
2. Add the Title inside a Container Block ( don't like this but... ) as that has Remove container condition in the sidebar that can check if a Post Meta ( custom field ) is empty or not.
Thanks David, maybe the answer would be to have an additional dynamic block for page title as there is for post content/excerpt. That way it might be possible to control it as you would a normal page title in the layout section.
The current direction is to include Dynamic Data and Dynamic Display Conditions to the GenerateBlocks Pro plugin. Not only would that facilitate dynamic data within the Post editor but allow you to dynamically control its display based on various conditions.
Today there probably is a filter we could use to check if the Layout Element is set and for that to remove the dynamic content.... i'll ask Tom.
Yes, sorry I meant adding a new block to the Generate Blocks plugin, not GP.
A filter would be handy yes.