Change lang="en-US" into lang="FR" in the AMP plugin

Posted in: Newspaper
Post count: 9

Hello everyone,

Please i need some help !

I have a website that target many french speaking countries in Africa. The problem is that the AMP plugin has in its settings/codes lang=”en-US” and i would like to change that to lang=”FR”.

Also, since each article is for a specific country, is it possible to optimize the plugin in order to have a specific href lang for each post ?

Thank you very much !

Post count: 35449

Hi,

Here is the path were you can fine the en-us but I do not now if this will help you to achieve what you want.
wp-content/plugins/td-amp/includes/lib/fasterimage/FasterImage.php
https://www.screencast.com/t/2NH243uHh5f
Unfortunately our AMP plugin was not tested in this mode.

Thank you.

  • This reply was modified 7 years by Calin.
Post count: 9

Thank you for the answer.
In fact, it’s not what i’m looking for.

In the source code of a ramdom AMP post there is this code at the beginin :
<!doctype html>
<html amp lang=”en-US”>
<head>
<meta charset=”utf-8″>
<meta name=”viewport” content=”width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no”>

And i want to change <html amp lang=”en-US”> into <html amp lang=”FR”>

Please do you know the path for this one ?

Thank you

Post count: 35449

Hi,

TagDiv AMP Plugin have only the “Accept-Language: en-us” in wp-content/plugins/td-amp/includes/lib/fasterimage/FasterImage.php
https://www.screencast.com/t/2NH243uHh5f sorry.
The path for the random AMP plugins can be in different places.

Thank you for your understanding.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.