Hi @codestylist,
I have switched to a standard theme and switched off all plugins despite Polylang.
Polylang seems to work (the names of the front page and menu are changing).
https://ibb.co/cU7tao & https://ibb.co/mraqMT
To see content, I activated ACF and the Storefront Child Theme (deleted all code connected to Woocommerce, Woocommerce Plugin still activated). Still, no translation.
(Currently, this code is online: https://kontmagazine.tuesdayhosting.nl/)
I am showing you an example from the code:
<?php query_posts('category_name=Introduction&lang=en'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if (in_category('Introduction')) : ?>
<section class="row">
<a class="anchor" id="about"></a>
<div class="col-sm-12">
<p class="col-sm-12 introduction_title"><?php the_field('introduction_title'); ?></p>
<p class="col-sm-12 introduction_text"><?php the_field('introduction_text'); ?></p>
<p class="col-sm-9 introduction_subtext"><?php the_field('introduction_subtext'); ?></p>
</div>
</section> <!-- end row introduction -->
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
Observation: The footer is half translated and the hyphenation reacts on the change of language.
In the footer, I am using
<?php query_posts('category_name=Footer'); ?>
-
This reply was modified 6 years, 6 months ago by anneklappe.