mano2web
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Sixteen] Tag in document head errorHello again everyone!
I just want to say that my problem has been solved, I just needed to update some plugins and my site works fine again!
Thank you!
Forum: Plugins
In reply to: [Sticky Menu & Sticky Header] Always show menu labelYes, you are right! Multiple tabs, absolutely my bad! I’m sorry about this! ??
Forum: Plugins
In reply to: [Polylang] Polylang Huge IT SliderHello everyone!
It’s me again.
I’ve managed to solve it with the following code:
<?php $currentlang = get_bloginfo('language'); if($currentlang=="hu-HU"): ?> <?php echo do_shortcode("[huge_it_slider id='1']"); ?><br /> <?php else: ?> <?php echo do_shortcode("[huge_it_slider id='2']"); ?><br /> <?php endif; ?>
For beginners like me to spare some hours of search a little (noob) explanation:
This part does the first language check:
<?php $currentlang = get_bloginfo('language'); if($currentlang=="hu-HU"): ?>
This part shows the hungarian slider if the above statement is true:
<?php echo do_shortcode("[huge_it_slider id='1']"); ?><br />
This part moves on to the next operation (if the statement in the previous case is NOT true):
<?php else: ?>
This part shows the slovak slider:
<?php echo do_shortcode("[huge_it_slider id='2']"); ?><br />
And this part closes the whole operation:
<?php endif; ?>
I think this is a pretty easy solution for 2 languages. Maybe with more languages you need to create more “if” sections.
So problem solved, thank you for the documentation of Polylang and WordPress.
This thread can be closed.
Forum: Themes and Templates
In reply to: [Appointment] Appointment Service TranslationHello!
I have the same issue, I use the Polylang addon and would like to use it to make the site a multilanguage one.
I added the texts in one language and now I can’t translate it. I just currently need it for the Services and Slider section but if you can provide me a general solution for this problem maybe it will help others too. ??
Thank you for your help!