This tutorial is aimed at developers. My thanks to Rich Tabor for his insightful article entitled How to Add Customizer Colors to Gutenberg Block Color Palettes. After a lot of thought on the matter and countless attempts at finding a solution this article steered me in the right direction.

Very rarely do I include colour options in the Customizer in my own themes. There are a number of reasons for this with the main reason being that with these options a user can destroy all my hard work with regards to website accessibility with just a few clicks. Another big reason why I tend to stay away from these things is the degradation in site speed that comes as a result. Creating child themes with a lot of inline css in the parent theme is also not a lot of fun.

Continue reading “Customizer Color Options”

The WCAG standards are very specific about adding alternative attributes to image links. The alt attribute provides alternative information for an image if a user for some reason cannot view it (e.g. if the user is using a screen reader).

WordPress adds a level of complexity to the situation in that when a user adds an image to the either a post or page he/she can enter their own alt attribute.

Continue reading “Auto Alt Attributes To Featured Images”