Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Slavisai
tagDiv Member

Polylang.


This is an example of what happens if I apply the German Template.
I understand that it could be the Polylang that makes a conflict, it would be helpful though if you could point out which PHP files should I look at to make some editing.

Thank you!

Slavisai
tagDiv Member

I have three different templates for each language. When applying the template to the corresponding language, the template applies to all language versions.

Img

Slavisai
tagDiv Member

Hi there rahimahwaz2020,

have you found the solution for “404” and “search template”? I also have the same issue with the Author’s template, it switches for all language versions.

Slavisai
tagDiv Member

Example: https://disk.yandex.com/i/d8QPYOTwtRhovQ
Additional: Footer keeps the german version of the site.

It might not be the issue with the Theme, still it would nice if you could give me some tips on how to solve this issue since I’m a newbie with PHP.

I see in the code that “home_url” is the probable redirection to the homepage, and there is only one on the site. I can’t make my subdirectories /de and /sr as additional homepages.

How do I implement “pll_current_language” into the code? I can send you the screenshots of the PHPs if you like.

Thank you!

  • This reply was modified 4 years by Slavisai.
  • This reply was modified 4 years by Slavisai.
Slavisai
tagDiv Member

Hello,

thank you for the response, still no results.

I researched the web a lot about the issue, and my opinion is that the searchform.php and search.php are not coded well, the search form doesn’t keep my header of the current language (it switches to the English version), but some of the content keeps the language template (German).

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