Home › Forums › Free Themes › Signify Education › Polylang Plugin: Translating the Header Media URL & Header Media URL Text
Tagged: header media, polylang
- This topic has 4 replies, 2 voices, and was last updated 3 years, 8 months ago by anglickyonline.
-
AuthorPosts
-
April 2, 2021 at 5:53 am #147776anglickyonlineParticipant
Hi,
I very much appreciate all the help I’ve gotten on this forum and I wonder if I could ask for assistance yet again.
I’ve installed the plugin for creating multilingual websites Polylang, and with its option of string translations I have been able to translate my website name and description.
I’ve followed the instructions on one of the polylang FAQs and uploaded an wpml-config.xml file into my database to be able to add a different header image in the String Translations option of the plugin. So far, that has been successful.
I put in this code into the xml file:
<wpml-config> <admin-texts> <key name='theme_mods_signify-education'> <key name='header_image' /> </key> </admin-texts> </wpml-config>
However, since I’m using the header media url (and header media url text) option on my default language page, I wanted to translate that for the English version too.
I tried changing the code in the xml file to this:
<wpml-config> <admin-texts> <key name='theme_mods_signify-education'> <key name='header_image' /> <key name='header_media_url' /> <key name='header_media_url_text' /> </key> </admin-texts> </wpml-config>
But nothings happened. Where before the option to put in a different url for the header image appeared in the Polylang -> String translations, this got me nothing. (Though I still have the option to change the header image.)
I’ve tried clearing cache and logging out and in, but nothing works. I suppose I have made some mistake in the code? Could you advise me on what to do differently, please?
Thank you!!
Christine
April 2, 2021 at 8:23 am #147784PsinkKeymasterHello Christine
Is it something link this?
https://www.awesomescreenshot.com/video/3257227?key=5097075095477ece45ebbc14a9b36957Please add this css in additional css
html:lang(ne) .site-logo img { content: url(https://pojo.me/wp-content/uploads/2015/01/pojo-logo.png); }
Change the language code ie. lang(ne) to lang(cs-CZ) and replace the logo URL
Main logo that you have uploaded in the site logo will be used for en lang
and the css will helps you to change logo for your cech lang
Hope this will helps you
Regards,
PsinkApril 3, 2021 at 5:07 am #147813anglickyonlineParticipantI think the post is awaiting moderation because I put in an image: a screenshot of the section in Customize.
Christine
April 4, 2021 at 12:47 am #147861PsinkKeymasterRight now it is not possible to have two different links in the Button for the two different languages
Regards,
PsinkApril 4, 2021 at 3:19 am #147785anglickyonlineParticipantThanks for responding, Psink.
I’m not sure I explained myself well enough: it’s nothing to do with the logo. The template has the option to add text and a button with a link to the header.
This is at the bottom of the Customize > Header section:I would like to be able to have a different text and link in different languages. I thought I could do with the code in the xml file like I showed you in my first message, as that worked for the header image, but it doesn’t work for the header media url or header media url text.
(The link to the awesomescreenshot website you’ve sent me is a blank page for me.)
Thanks!
Christine -
AuthorPosts
- You must be logged in to reply to this topic.