Home Forums WoodMart support forum Hotspot image missing alt text

Hotspot image missing alt text

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #475411

    dimmisel
    Participant

    Hello, in the <image> tag in the hotspot widget, the alt text is missing, even if my image has an alt text in the media library.

    The image HTML is hardcoded in your source code, and not generating dynamically using WP functions and this problem appears. I use Woodmart 7.2.4.

    \XTS\Elementor\Image_Hotspot::render

    if ( isset( $settings['image']['id'] ) && $settings['image']['id'] ) {
    	$image_url = woodmart_get_image_url( $settings['image']['id'], 'image', $settings );
    	$image_output = '<img class="wd-image-hotspot-img" src="' . esc_url( $image_url ) . '">';
    } elseif ( isset( $settings['image']['url'] ) ) {
    	$image_output = '<img class="wd-image-hotspot-img" src="' . esc_url( $settings['image']['url'] ) . '">';
    }

    Could you please fix this? Alt text is important for many reasons.

    Thank you

    • This topic was modified 1 year, 5 months ago by dimmisel.
    • This topic was modified 1 year, 5 months ago by dimmisel.
    #475488

    Luke Nielsen
    Keymaster

    Hello,

    In order to fix that, please apply the 475483 patch in Dashboard -> WoodMart -> Patcher.

    Let me know the result.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)