Conditional Content Block
-
Hi all,
So in re-building this town site with Twenty Twenty-Two we’ve managed to do so entirely without a child theme. I don’t like child themes because they quickly become out-of-sync with the parent theme which can causes minor inconveniences to quite drastic problems. Child themes also have quite an impact on load times.
In order to get around the problem of how to display blocks and content programatically without having theme files to edit, we’ve created this content by building custom plugins that produce shortcodes that can be used with the Shortcode Block. Great.
However, quite a lot of this is pretty basic conditional stuff like …
Does the current page / post have a featured image? If so show the featured image, if not show another default image.
We’ve tried to find a plugin that would allow for conditional content like this by adding a “Conditional Content” block but can only find plugins that conditionally hide or display the relevant blocks with CSS, not one that shows them programatically.
Am I missing something or do I need to develop a plugin to do this? ??
Oliver
The page I need help with: [log in to see the link]
- The topic ‘Conditional Content Block’ is closed to new replies.