Home Forums Free Themes Signify Education Polylang Plugin: Translating the Header Media URL & Header Media URL Text

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #147776
    anglickyonline
    Participant

    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

    #147784
    Psink
    Keymaster

    Hello Christine

    Is it something link this?
    https://www.awesomescreenshot.com/video/3257227?key=5097075095477ece45ebbc14a9b36957

    Please 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,
    Psink

    #147813
    anglickyonline
    Participant

    I think the post is awaiting moderation because I put in an image: a screenshot of the section in Customize.

    Christine

    #147861
    Psink
    Keymaster

    Right now it is not possible to have two different links in the Button for the two different languages

    Regards,
    Psink

    #147785
    anglickyonline
    Participant

    Thanks 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:

    screenshot-header

    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

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