cibproject
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Blocked access to wp-admin and websiteI would really appreciate if I could have any answer to that issue so I can keep on working.
I just updated the 1.3.1 version and now just one flag is showing on my page and no dropdowns…
Thank you very much.
Forum: Plugins
In reply to: [Polylang] Blocked access to wp-admin and websiteJust to be clearer: I would like to have a dropdown switcher with only the flags and not the names of the languages.
This is how my code looks like right now on polylang/include/widget-languages.php (which by the way says “inactive” in parentheses – don’t know what that means and how to change it):
function widget($args, $instance) { global $polylang; if (!(isset($polylang) && $polylang->model->get_languages_list() && $list = pll_the_languages(array_merge($instance, array('echo' => 0))))) return; extract($args); extract($instance); echo "$before_widget\n"; if ($title = apply_filters('widget_title', $title, $instance, $this->id_base)) echo $before_title . $title . $after_title; echo $dropdown ? $list : "<ul>\n" . $list . "</ul>\n"; echo "$after_widget\n"; // javascript to switch the language when using a dropdown list if ($dropdown) { foreach ($polylang->model->get_languages_list() as $language) { $url = $force_home || ($url = $polylang->links->get_translation_url($language)) == null ? $polylang->links->get_home_url($language) : $url; $urls[] = '"'.esc_js($language->slug).'":"'.esc_url($url).'"'; } $urls = implode(',', $urls);Where exactly do I put what exactly?
Since I had to uninstall polylang and reinstall it and lost all the page configuration I had done before to match the language menus, I did not do it again, until I have this figured out, so that is a problem you might see if you go to my website, but I am aware I have to create pages with different languages for it to really work.
Before the 500 Internal Server Error, I had it all done and the dropdown was still not working.
Thank you in advance for helping out!
Forum: Plugins
In reply to: [Polylang] Blocked access to wp-admin and websiteI figured it out with my host. All back to normal. I had to delete the polylang file in my file manager. The following error was detected:
[13-Dec-2013 04:15:17 UTC] PHP Parse error: syntax error, unexpected ‘<‘ in /home5/viagente/public_html/wp-content/plugins/polylang/include/widget-languages.php on line 42
It looks like I messed it up inserting the bad code.
Could you please help me on that?
Thanks a lot!
Forum: Plugins
In reply to: [Polylang] Blocked access to wp-admin and websiteps. my theme is the latest version of avada.
Forum: Plugins
In reply to: [Polylang] Blocked access to wp-admin and websiteForum: Plugins
In reply to: [Polylang] Blocked access to wp-admin and websiteForum: Plugins
In reply to: [Polylang] No "save changes" button on my settings pageThanks! That solved the problem!
🙂