Skip to main content

Conditional block conditions in template not working

Comments

3 comments

  • Sandra Prunici

    Hi,

    From your screenshot, I find that this block is set-up to display for posts/pages where is included the "Clinic page" template and to exclude it from "ja" custom taxonomy "Tilmeldt Sundhed+" Archive page. When you added that exclude condition, you didn't exclude this block from the pages that have the "ja" taxonomy but exclude from the "Ja" archive page. Unfortunately, at the moment isn't possible to exclude a block from some pages that have a certain category or custom taxonomy. 

    Let us know if we can help you with something else.

    Best regards,
    Sandra

    0
  • Mathias Hoffmann

    Hi Sandra

    Thanks for your swift reply.

    So what you are saying is that we cannot exclude a block based on any of the page's actual content?

    In that case, do you have any ideas to an easy workaround for this? Maybe a third party plugin that can be used instead?

    Kind regards,
    Mathias

    0
  • Sandra Prunici

    Hi,

    Yes, you can add Exclude condition to the global block but for this, you have manually selected on what pages or posts do you not want to display that block. Therefore, you have to add "Exclude - Pages - [name of the page]" or on your case (because you want to exclude the block from the custom post type) "Exclude - [name of custom post type] - [post name] " and in such a way for all pages or posts, you want to exclude that block. 

    Unfortunately, it isn't another way to exclude the global block from a page or post.

    Best regards,
    Sandra

    0

Please sign in to leave a comment.