[Resolved] Show/hide a block based on custom field value

Home Forums Support [Resolved] Show/hide a block based on custom field value

Home Forums Support Show/hide a block based on custom field value

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1877698
    Brenden

    Is there a way to show or hide a block based upon a custom field value?

    I have a custom post type with custom fields (created by MetaBox.io). I would like to have a radio button custom field with options ‘Fall’ and ‘Spring’. If set to ‘Fall’, I want to hide container block ‘A’ and show container block ‘B’. If set to ‘Spring’, I want to show container block ‘A’ and hide container block ‘B’. Is this possible with GeneratePress and GenerateBlocks?

    Every Beaver Builder module has this functionality available. However, I would much rather do this in GeneratePress if possible.

    #1877793
    Leo
    Staff
    Customer Support

    Hi Brenden,

    Unfortunately there isn’t an option built-in in GB for this.

    I kind of like the idea though – will add it as a potential feature to add in GB pro.

    Sorry about that!

    #1880882
    Brenden

    Thanks for the reply! In absence of this option, would you recommend a plugin link Conditional Blocks Pro (https://conditionalblocks.com/)? Or do you have any other recommendations?

    #1880994
    Leo
    Staff
    Customer Support

    I’ve not tried the plugin before but might be worth a shot!

    We haven’t had other similar requests on this before so I’m not sure if it will be added as an option in the near future.

    #1881170
    Brenden

    That makes sense. I’ll try out that plugin and report back on my experience.

    #1881242
    Leo
    Staff
    Customer Support

    Sounds good.

    Thank you!

    #1882071
    Brenden

    So far so good. Conditional Blocks Pro is working exactly as I had hoped!

    #1882493
    Leo
    Staff
    Customer Support

    That’s awesome 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.