Alt text for images when empty display alt="image"

Hi I am wondering if there is a way to remove the auto alt text “Image” as this gives false readings to external SEO audits making it think images have alt text but this default is obviously not very good. Hopefully there is a function I can add to remove this default alt tag so can easily find images with missing alt tags and update them correctly.

Hi Jay,

Thanks for reaching out!

We have two filters about the alt image, please check it below:

Remove the alt on the image:

add_filter( 'cs_fallback_alt_text', '__return_empty_string' );

Change the alt=“Image” value to something else:

add_filter( 'cs_fallback_alt_text', function($text) {
  return 'Image';
} );

If you want to customize the function into a more detailed one, you may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

Hope that helps.

Thank you.

1 Like

Perfect thanks.

Hi Jay,

You’re welcome and it’s our pleasure to help you. If you have any other concerns regarding our theme features, feel free to reach us.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.