Forum Replies Created
- AuthorPosts
- Harry JKeymaster
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/JcvrbBnHBasically, 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.
Harry JKeymasterHello 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.
- AuthorPosts