Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Hyrda: Translate logo image in Polylang? #23823
    Harry J
    Keymaster

    Hi Karen!

    I am sorry to hear you are still having this issue. Regarding the template functions, not all of them are defined within the header on every theme but they are set up in the header to help speed up development time. You can find the array used to set the functions on lines 34-40, and header-7 is used for the social menu in Hydra

    https://github.com/BoldGrid/hydra/blob/master/inc/boldgrid-theme-framework-config/config.php

    A good way to approach this is to use print_r first, to ensure the correct language slug is being queried: To give you an idea of how I got it to work, I have included my header template in this screenshot

    Finally, I was able to set up Polylang on a test site and created translations for my home page for two languages, and this worked fine for me:
    https://pastebin.com/JcvrbBnH

    Basically, I just replaced the header-6 function for site-identity with my conditional that checks for the language. Here is a screenshot of that page as well

    I hope this helps you accomplish your goal.

    Have a great day!

    Harry J.

    in reply to: Hyrda: Translate logo image in Polylang? #23825
    Harry J
    Keymaster

    Hello Karen,

    Thank you for your question about child theming with BoldGrid.

    According to the documentation from Polylang, you can use conditional arguments to accomplish changing the logo based upon the language.

    https://polylang.pro/doc-category/developers/

    This would be something you can apply in the header template using a child theme. Keep in mind, adding this type of conditional will also override the Customizer controls for the logo, as it would require the image(s) being used to be hard-coded into the header template. We do have detailed documentation on using the configuration file to set the header template in use.

    https://www.boldgrid.com/docs/

    I hope this helps you to accomplish your goal!

    Thanks,

    Harry J.

Viewing 2 posts - 1 through 2 (of 2 total)