alt text

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47736
    Mark McLachlanMark McLachlan
    Participant

    Could you advise how to add a custom field to add alt text that will be automatically set as alt text with an image uploaded via front end submission please?

    #47739
    PeterPeter
    Moderator

    Hello Mark,

    I'm afraid that there isn't an option to set a custom field as an alt text for an uploaded image via the frontend form or in the admin area.
    If you are familiar with coding, I think you can use the action hook rwmb_{$field_id}_after_save_field and update the standard custom field value _wp_attachment_image_alt of the image by the custom field from Meta Box. Refer to the documentation
    https://docs.metabox.io/actions/rwmb-after-save-field/

    #47743
    Mark McLachlanMark McLachlan
    Participant

    I do write some code - but this, as simple as it may be for someone who codes everyday - has defeated me.

    The method you suggest is along the way I had been working.

    I would think that for the sake of accessibility this would be something that would be worth the attention of the plugin dev's.
    I am in the planning stages of a site that will have multiple authors and event forms etc.
    It would be a nightmare to have to add alt text to images uploaded by hand.

    A requirement of the site is that it meet accessibility standards.
    Could you bring this to the attention of the dev's please. I think it would make an excellent article for your website and or You Tube channel.

    #47744
    PeterPeter
    Moderator

    Hello,

    Thank you for your feedback. I've shared this topic with the content team and we will consider creating an article regarding this case.

    Have a good day.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.