Conditional templates or blocks
Is there any way to add conditions to blocks or to templates made?
I have made 3 different page templates in WP Brizy Pro.
I would like to either show a certain block based on an ACF field selection OR a certain template based on ACF selection.
Is this possible? I am a pro-WP coder so you don't have to give me the skinny. Give me to gusto!
-
Hi Sam,
Thank you for contacting us.
You can set up a block like a global one, in this way this block will appear on every page, or you can set up on which page this block will appear. Please see this video.
Hope this will help.
Best regards, Nelea.
0 -
Hey Nelea,
That didn't answer my question, I am sorry.
0 -
Hi Sam,
Sorry, unfortunately, at the moment we dont have any other option to set up the condition for a template and block. Therefore I send already this feature request to our managers.
Best regards, Nelea.
0 -
Are there any workarounds in the code?
Can a Brizy developer suggest a workaround?
Or do I have to just scan the codebase looking for a way to make this happen?0 -
Hi Sam,
Regarding your question, I also asked a developer, and unfortunately, there is no workaround for this.
Best regards, Nelea.
0 -
This can't be true. This is WordPress. Can you have a dev explain how and where the templates are saved that are made?
0 -
Hi,
Sorry Sam, but our devs are involved in the development process and they don't have time to answer in the community. You could inspect this aspect by yourself or you can wait until we create the API and then you will be able to extend the builder's functionalities.
Best regards, Nelea.
0
Please sign in to leave a comment.
Comments
7 comments