Solved

Theme builder Conditional logic for sections?

  • 24 November 2021
  • 4 replies
  • 25 views

Badge

Allright, Theme builder gives an immense flexibility but still i’m coming short in the conditional Logic. 

So this is my case. I am creating a directory of project some are video based some are just an image. the input is based on extra metafields I created in the wp editor. Based on added categories I would like to hide / show a different element. 

I know I could just duplicate the theme builder “template” I created but and assign to a new category. But this is sloppy and will give us double work in the future. 

Is it possible to create create conditional logic nested in a builder template in some way? 

If Project category is video = show section video.
if project category is not video = show section Image. 

 

 

icon

Best answer by Harry Martin 24 November 2021, 14:22

View original

4 replies

Userlevel 6
Badge +3

why don’t you use filters, so you when you click on a category it will show related videos

Badge

why don’t you use filters, so you when you click on a category it will show related videos

Its not about that. 

 

The video page has an element video that is build with some metafields from the backend. But a project with no video that uses the same builder-template atm will show the video widget with the image and a play button. So the only thing that needs to change dynamically is the video element into an image element. 

its about building the content not related project that's all figured out

Userlevel 2
Badge +3

https://www.dynamic.ooo/

sure you will finde a way with this plugin

 

https://wordpress.org/plugins/dynamicconditions/

 

easier to use,  maybe you’ll find a solution with show/hide section 

 

 

Badge

https://www.dynamic.ooo/

sure you will finde a way with this plugin

 

https://wordpress.org/plugins/dynamicconditions/

 

easier to use,  maybe you’ll find a solution with show/hide section 

 

 

Harry, 

This was 100% what I was looking for. I was able to hide elements based on basically any condition thanks! 

Reply