Add Title tag to Header Background Image

Astra Pro offers the option to set a background image for the header. This image is added using CSS background-image Property. This property does not have an option to add an alt tag to the image.

So as an alternative to the alt tag, we can add a title tag to the div. This will act as an alt text in the background-image property.

Following filter will add title tag to the div of the header, where background image is added using CSS property.

Not the solution you are looking for? Check other articles, or open a support ticket.