Site icon Hip-Hop Website Design and Development

WordPress different language footer text

I am new to WordPress, and I have a problem building my website. I use the Sydney theme and Polylang plugin for my multilanguage website.

I have build a website in 4 different languages and now I would like to have a different footer text for every language in the sub footer part.

For e.g. where it says in English language ‘Copyright I Privacy policy‘ ‘, with the hyperlink on provacypolicy/en, that I have created. For the German start page the subfooter language should auto change in ‘Copyright I Datenschutz‘, with the hyperlink from Datenschutz on the German page with privacypolicy/de that I have created. And also the same for the other languages.

I tried to edit that in the footer.php but I had no luck.

My existing code for <div class="site-info container"> in footer.php is:

© <?php echo date("Y"); ?> | Company name | All rights reserved | <a href=
"http://localhost/companyname/wordpress/privacy-policy/">Privacy policy</a> 

When I go to my german language it should change to:

© <?php echo date("Y"); ?> | Company name | Alle Rechte vorbehalten | <a href=
"http://localhost/companyname/wordpress/datenschutz/">Datenschutz</a>

And the same for other two languages.


I RESOLVED THE ISSUE.

For anyone that will have the same problem, use the if - endif code in your footer.php.