Show image title or alt text on hover.

#758906
  • Resolved Christian De Geus
    Rank Math free

    Hi,

    This

    Show image title or alt text on hover.

    I’ve read this article.

    https://rankmath.com/kb/image-seo/

    Below the page I see I can set

    %imagealt%: This variable sets ALT text for the current image.

    or

    %imagetitle% This variable sets the Title text for the current image.

    But when I do this nothing shows on hover or in lightbox.

    When I set is to title I see it shows the product title on all images.

    %filename% is not an option as it shows an ugly filename to the visitor.

    Question:
    How do I show image title or alt text on hover?

    Regards, Chris

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    I apologize for the inconvenience you are facing with displaying image title or alt text on hover. Thank you for providing detailed information about your concern.

    Based on the information you shared, it seems that you are trying to display the image title or alt text on hover, but it is not working as expected. The variables %imagealt% and %imagetitle% provided in the Rank Math settings are not reflecting the desired text on hover or in lightbox.

    To show the image title or alt text on hover, you can follow these steps:

    1. Enable Add Missing ALT Attributes: Make sure that you have enabled the “Add Missing ALT Attributes” option in Rank Math SEO settings. This feature automatically adds ALT text to images that don’t have it.

    2. Set Alt Attribute Format: Configure the Alt Attribute Format in Rank Math settings. You can use variables like %imagetitle% or %imagealt% to set the ALT text for images.

    3. Save Changes: After setting the Alt Attribute Format, remember to save your changes by clicking the “Save Changes” button at the bottom of the page.

    By following these steps, you should be able to display the image title or alt text on hover effectively. If you continue to experience issues or need further assistance, please feel free to reply to this ticket, and a human agent from our support team will assist you promptly.

    We appreciate your patience and understanding as we work to resolve this issue for you.

    Best regards,

    Sources:
    How to Show Images in the Search Results » Rank Math
    How to Automatically Set Alt and Title Attributes for Images
    Image SEO Options in Rank Math

    Christian De Geus
    Rank Math free

    Did evertything the support bot asked me. Not working.

    Hello,

    Thank you for your patience.

    Please note that the Add missing ALT attributes and Add missing TITLE attributes options in Rank Math are not added to your images in the media gallery as the feature works only on the fly (applied on the front end when your page loads on the browser).

    Also, images added by your WordPress theme or page builder to various sections like your sliders, thumbnails, icons, etc. will not be affected as they only apply to images added directly to your content.

    In that case, you may get in touch with your theme provider to add or modify the alt/title attributes.

    Looking forward to helping you.

    Christian De Geus
    Rank Math free

    Hi,

    They say it’s not part of their theme settings. They say it’s a browser setting. In all browsers I can’t find such a setting…

    What I do know is that Rank Math can alter it in the ALT en TITLE settings e.g. when I choose filename. So why don’t my product images aren’t changed when I change it to %imagetitle% or %imagealt%.

    Best, Chris

    Hello,

    Please share the exact product URL where you are experiencing this so we can check for you.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Show image title or alt text on hover.’ is closed to new replies.