Back end block checks: helping you to help your website
If you clicked on the headline for this post and expected an article on a player who stops the quarterback from scoring a touchdown then congratulations – you know less about American football than I do (and that is quite the achievement). Instead, today we are talking about a new feature that you will see in the new cuTheme template when it is launched.
What is a back end block check?
In the new template we are employing WordPress’ latest administration interface. This uses blocks – components which house each individual piece of content that can be edited separately and which together compose the page. (You can read more about our adoption of WordPress’ Gutenberg interface.)
That’s the back end block. The check aspect is a small function we use to ensure that any block created on a page goes out into the world as its creator intended.
What does the check do?
The function works to make sure an element is not added to the page which makes the page less accessible. As with all aspects of accessibility, making the page better for those with disabilities makes it better for everyone else.
That is what the check does – makes sure a component, for example, isn’t published with no text in it, or if it is supposed to have a hyperlink attached, that this is present.
An example: the button block
As with every component on a page in cuTheme, to add a button you now employ a block to do so. Handily, our developers named this the Button block. On the front end of the site it looks like this: