Hello There!
Hope you are doing well!
We have checked your website and found out that you have used a plugin that helps you translate the website in multiple languages.
You have set ‘FR’ (URL: https://www.delettresenlettres.ch/) as default language and a secondary language is ‘DE’ so when you select ‘De’, the theme is considering it as another page(URl: https://www.delettresenlettres.ch/de/)and not the Homepage. Theme is developed in a way so that it shows slider on the Homepage.
If you would like to have a slider on https://www.delettresenlettres.ch/de/ then you will need to create a child theme and need to alter the code mentioned on Line:13 in the template file located at “template-parts/slider.php”
Hope this helps!
Have a great day ahead!
Thread Starter
klol
(@klol)
Thank you very much for your answer.
I’m not sure I understood correctly.
Finally it is especially that when I create a child template for this page, it always comes back to Home.
At line 13 there is this:
if (! (is_front_page ()) &&! is_page_template ('templates / home.php')) {
return;
}
Should I add is_page(9742)?
Thanks a lot for your help
Hi There!
Hope you are doing good!
Please add below code
if (!is_page(9742) && !(is_front_page()) && !is_page_template('templates/home.php')) {
return;
}
Hope this helps!
Thanks and Regards,
Team ProDesigns
Thread Starter
klol
(@klol)
Thank you it’s works!
Have a nice day and thank you!
Hi There!
Greetings of the day!
We are glad that it worked.
Feel free to get in touch in case of any other query.
Thanks and Regards.