Content Block Styling and Logic
-
I would like to use the FAQ and How-to content blocks, but there are a few issues. For starters, the content blocks have opinionated styling. Why is the step title bold? Options:
Remove “strong” from the HTML markup.
Or allow us to toggle “bold” on/off in the editor.Same for the main description section, at the top most of the block. Why can’t we choose if this is a Heading? the only option is “bold”. We should have full control over this. My page navigation (TOC) is hooked into H2 tags. So I need to add a separate block for this. Not a huge issue, but illustrating the limits of this block, which seem to be opinionated (poorly) for no good reasoning.
Block logic. If you do not use a description field the block will still output the HTML markup. This is odd, why would it be allowed to publish empty markup? Here is look:
<div class="schema-how-to wp-block-yoast-how-to-block"> <p class="schema-how-to-description"></p> <ol class="schema-how-to-steps"> <li class="schema-how-to-step" id="how-to-step-1657757090870"> <strong class="schema-how-to-step-name">A clean database is required unless you are using a database that a previous version of our software used.</strong> <p class="schema-how-to-step-text"></p> </li> </ol> </div>EMPTY MARKUP <p class=”schema-how-to-description”></p>
EMPTY MARKUP <p class=”schema-how-to-step-text”></p>There should be an if statement around these elements to not display if empty. Why is this not there?
The topic ‘Content Block Styling and Logic’ is closed to new replies.