WordPress.org

Ready to get started?Download WordPress

Forums

xLanguage accesibility (alt and title) (1 post)

  1. David García
    Member
    Posted 4 years ago #

    Hello everyone,

    I'm trying to add "title" and "alt" properties into images and links in the post edition screen using xLanguage.

    I would need something like this:
    <img src="..." alt="Alt_in_lang_1|Alt_in_lang_2" />

    Instead of:

    <img lang="lang_1" src="..." alt="Alt_in_lang_1" />
    <img lang="lang_2" src="..." alt="Alt_in_lang_2" />

    I mean i don't want to duplicate each image or link while editing a post. Has anyone tried something like this? I've tested some hooks like adding a filter to the_content and look for every image or link in it and then replace the alt and title properties correctly. But it doesnt seem to work.

    Any idea?
    Thanks! :)

Topic Closed

This topic has been closed to new replies.

About this Topic