hendrah
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Get language in index.php –> what code to use?Hi…it is good to hear that it works for you. I see your blog and a nice one too.
Cheers…
Forum: Plugins
In reply to: [Polylang] Get language in index.php –> what code to use?ok, try this
<?php get_header(); $curlang = pll_current_language(); if ($curlang=='en') { putRevSlider("Plumedaureenglish"); } elseif ($curlang=='fr') { putRevSlider("Plumedaure"); } else { //slider for other languages, default to french putRevSlider("Plumedaure"); } ?>the rest of the code is the same. Try this and tell me how is it going.
Cheers…Forum: Plugins
In reply to: [Polylang] Parenthesis showing after language title in changerCorrection to my post above. I just testing my code to your site, and it is working…
Forum: Plugins
In reply to: [Polylang] Parenthesis showing after language title in changerWell…there are many ways to generate the language option code. Without knowing how it was generated (the actual code used, not the generated html), it would be difficult to fix.
Another alternative is using javascript/jquery to target the <span class=”w-dropdown-item-title”>English ()</span>, something like…jQuery( document ).ready(function() { jQuery("span.w-dropdown-item-title").text(function(index, text) { return text.replace("()", ""); }); });This code is not tested, and may need tweaking…
Forum: Plugins
In reply to: [Polylang] Get language in index.php –> what code to use?You can use polylang
function pll_current_language()to get the current language.Forum: Plugins
In reply to: [Polylang] Fatal error PolylangThis will not solved your error, but allow you to access your admin page again https://www.ostraining.com/blog/wordpress/disable-a-wordpress-plugin/
Forum: Plugins
In reply to: [Polylang] How make a dropdown languages menuYou can use the polylang function
pll_the_languages(array('raw'=> true))This function will give you array that has all the information for you to build your custom menu.