Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Images on english startpage have German alt-texts (Polylang)

Home / Forums / Virtue Theme / Images on english startpage have German alt-texts (Polylang)

This topic is: Not a support question
[Not a support question]
Posted in: Virtue Theme

Tagged: , ,

June 21, 2018 at 2:25 am

Hi,

I noticed that on our English startpage the image alt-attributes are the ones from the German image Post IDs.

We use polylang with media translation as described here:

That is, the file system image (*.jpg) stays the same but the metadata (title, caption, alt) get translated.

Not sure, but probably Virtue would need to check what the current language is (pll_current_language) and then get the right image postId or similar (pll_get_post). Using this as a wrapper, Instead of using the selected image ID on both German and English as it does right now (guessing so from what happens)

See

There might as well be other ways of course.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.