Everything works perfectly: my articles are translated, pages as well, the language switcher is operational, my categories and tags are translated…
Through the block editor, I took care to create all my FR and EN templates.
On pages, the template switch works perfectly on the site’s pages, except for the page that displays the posts and child pages…
My configuration : My WordPress site is configured with a custom-built block theme.
I’m using ACF + Loop and Logic plugins.
I’ve been stuck on this issue for two days, and I need help to understand where the problem is coming from. Should I add code to my function.php file to make my theme apply the correct template? But where can I find the template’s slug? I only have the name I’ve defined in the editor…
Thank you for any assistance…
]]>The page is empty, I thought this is going to be way to much work so I delted the plugin. But now it keeps redirecting to that page that doesnt even exist anymore.
Please help, the front page of tge website is pretty much dead now.
]]>We have a issue with using this plugin with polylang, the standard language its working fine, but if we select the other languages the popup is not working, the windows stay empty, and showing no info about the event…
who can help me out to solve this?
]]>I’ve been struggling and struggling trying to get my Language switcher flags to be displayed on the right side of my header, beneath the Tagline.
i’ve tried using the
“add-polylang-dropdown-navbar-widget”
Even though this is meant for a dropdown box, heck Im just happy if I can get it on the right side of the page :p.
I’ve also tried the
“add-widget-area-header”
Currently I do have the language flags available in my header but the outlining is weird!
This is my website
Have tried adjusting the coding, no luck.. I might be missing something? Help!
In my Child theme i have the following:
Functions.php
// Adds a widget area to house a Polylang dropdown. See also accompanying css.
if (function_exists('register_sidebar')) {
register_sidebar(array(
'name' => 'Extra Widget After Navbar',
'id' => 'extra-widget',
'description' => 'Extra widget after the navbar',
'before_widget' => '<div class="widget %2$s" id="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
}
// Place the widget area after the navbar
add_filter ('__after_navbar', 'add_my_widget');
function add_my_widget() {
if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('Extra Widget After Navbar');
}
}
Style.css
#lang_choice_polylang-2 {
position: absolute;
right: 20px;
top: 90px;
width: 80px;
z-index: 250;
}
@media (max-width: 979px) {
/* Shift dropdown down for responsive navbar*/
#lang_choice_polylang-2 {
/* Change this, depending on your site */
top: 130px;
}
}
@media (max-width: 480px) {
/* Shift dropdown for smaller screens*/
#llang_choice_polylang-2 {
/* Change this, depending on your site */
top: 130px;
}
}
/*
Hope someone can lend me a hand with this!
Thanks in advance,
Rds Jacqueline
]]>Taxonomy Boxes in post editor start to mix up in languages since they might be cached by wordpress and polylang doesn’t cope with that behaviour.
Steps to reproduce:
1. Have two languages (german and english for example)
2. Have translated categories (4 for each language for example)
3. Create a german post with german categories
4. Create an english translation of that post -> english categories are shown
5. Go back to german post: Still, english categories are shown for ever until we flush the cache
Altough this sounds like a small problem, I tried to debug but couldn’t solve it myself, since I don’t quite understand the core of polylang itself and how it caches / invalidates.
When a user doesn’t realize that the categories are english in a german post, once saved, all categories are lost unintentionally.
(And of course it works without problems, once object caching is deactivated. It also doesn’t matter what kind of object-cache.php is used (memcached, redis etc.), it happens with every tested permanent / semi-permament object cache)
https://www.ads-software.com/plugins/polylang/
]]>I have a site that is in Spanish (default) and english. All is working well except the blog posts in English has an extra /en/ added to them. So when editing a post and pointing on “view post” or on the all posts list it will show the link as such:
https://www.mexresorts.com/en/en/blog/mexican-vacation-packages
Which will lead to a 404 page because the actual URL is:
https://www.mexresorts.com/en/blog/mexican-vacation-packages
Whish loads. On all normal pages in English the URL’s are fine. Anything that automatically displays posts will show the /en/en/ version of the URL like on the main page in the bottom: https://www.mexresorts.com/en/
I have the settings as follows:
SELECTED The language is set from the directory name in pretty permalinks
CHECKED Hide URL language information for default language
SELECTED Remove /language/ in pretty permalinks
CHECKED The front page url contains the language code instead of the page name or page id
Also I use the plugin “Enhanced Custom Permalinks” in order to be able to have longer slugs. The default one does not allow enough sub directories.
I hope someone can help or point me in the right direction!
Thank you!!
https://www.ads-software.com/plugins/polylang/
]]>