简体   繁体   中英

Polylang is changing my homepage - Wordpress

I just finished my first custom wordpress site, using my custom theme, and now, I was starting to translate the site, I need it to have 3 languages.

So, I installed the plugin Polylang . But, I don't know why, when this plugin is active, my home page that is a custom page (page-home.php) is not being considered the homepage anymore. Since I never used this plugin before and I don't have much knowledge in wordpress, I have no idea how to solve this problem. Can anyone help me?

I solved the problem. If you are using a custom page as your homepage, you first have to edit it. Just go there and save it, to assign this page to the default language you chose.

After that, you have to go to every page, post, custom post, and taxonomy, and save it using the default language. If you don't do that, the posts or the other contents of that current language will not be shown on the site, cause they have no language associated to it.

Then, you have to create a new version of every content you have on the admin (posts, pages, taxonomies) for the other languages you gonna use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM