Add missing alt tags does not work

#753499
  • Resolved Timverzalen
    Rank Math free

    Hello, I have enabled the setting ‘Add missing alt tags’, but I see it wont add alt tags (same as title of image) for the images on pages of a custom post type, how to fix this? The images get imported to my media library with an api btw. The pages are made with code by a dev, not with wordpress. I can change basic info within WP but those pages get made automatically with image galery etc. I can see alt = “ “ in sourcecode

    I really hope you have the solution 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello, we apologize for the inconvenience you are facing with the ‘Add missing alt tags’ setting not working as expected on the images of pages within a custom post type.

    Since the images are imported to your media library via an API and the pages are generated automatically with image galleries by a developer outside of WordPress, there might be a conflict causing the alt tags not to be added.

    To troubleshoot this issue, we recommend checking the following:

    1. Verify Alt Tag Format: Ensure that the Alt Attribute Format setting is correctly configured in Rank Math SEO settings. You can refer to our guide on setting Alt Attribute Format for assistance.

    2. Check Image Attributes: Confirm that the images imported via the API have proper alt attributes associated with them. If the alt attributes are missing at the source, Rank Math may not be able to add them automatically.

    3. Developer Assistance: Since the pages are generated automatically by a developer, it might be beneficial to consult with them to ensure that the images are being processed in a way that allows Rank Math to add alt tags effectively.

    If the issue persists after checking these points, please reply to this ticket, and a human agent from our support team will further investigate and assist you in resolving this matter.

    Thank you for bringing this concern to our attention. We appreciate your patience and understanding.

    Sources:
    Image SEO Options in Rank Math
    How to Automatically Set Alt and Title Attributes for Images
    Rank Math General Settings

    Timverzalen
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Remini Mazhar
    Rank Math free

    To address the issue of missing alt tags for images on custom post type pages in WordPress, follow these steps:

    Confirm the API integration responsible for importing images is functioning correctly.
    Check and enable the ‘Add missing alt tags’ setting in the WordPress dashboard.
    Inspect the image attributes in the media library to ensure titles are available for alt tags.
    Review the custom code responsible for generating pages to ensure it includes provisions for adding alt tags based on image titles.
    Contact the developer who created the pages to investigate and make necessary adjustments if you’re not comfortable with code changes.
    for more details visit reminiapkking.

    Timverzalen
    Rank Math free

    I did everything already except this: “Review the custom code responsible for generating pages to ensure it includes provisions for adding alt tags based on image titles.
    Contact the developer who created the pages to investigate and make necessary adjustments if you’re not comfortable with code changes.
    for more details visit reminiapkking.”

    Do you maybe have the solution more specific?

    Hello,

    Thank you for contacting Rank Math support.

    Please confirm which variable you have used for the ALT attribute in our plugin’s settings. If you have used the %imagetitle%, it won’t work for the ALT field. You will have to use a different variable like %title% to add the post title as the ALT text or %filename% to add the image file name as the ALT text.

    The %imagetitle% only works when you define a title in the settings of the image block, as the default title of the image is not used as the title attribute by WordPress:

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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 ‘Add missing alt tags does not work’ is closed to new replies.