
Originally Posted by
retched
PHP 8.1.2
ZC 2.0.1
ZCA Bootstrap 3.7.3
Right now I'm running parts of the product pages through a screen reader. One of my pages has the following
Running it through a screen reader, I hear this:
Code:
Enhance Commit 1 foundation: Your (image for) High Attack or (image for) Mid Attack attack gets +1 speed and +1 damage.
What I wanted to know was, without disabling or changing the IMAGE_ALT_PREFIX define (since it is useful in some cases), is there a way that I can modify the zen_image call to not auto insert the "(image for)" so that a screen reader doesn't insert it?
That (image for) text is coming from the base Zen Cart's zen_image function's use of
PHP Code:
'IMAGE_ALT_PREFIX' => '(image for)',
which is set in the default lang.english.php. You could add that definition to your template-override version, simply setting the language-constant's value to an empty string.
Bookmarks