Title: Prosiek's Replies | WordPress.org

---

# Prosiek

  [  ](https://wordpress.org/support/users/prosiek/)

 *   [Profile](https://wordpress.org/support/users/prosiek/)
 *   [Topics Started](https://wordpress.org/support/users/prosiek/topics/)
 *   [Replies Created](https://wordpress.org/support/users/prosiek/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/prosiek/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/prosiek/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/prosiek/engagements/)
 *   [Favorites](https://wordpress.org/support/users/prosiek/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Polylang Artisteer, bug in navmenus.php](https://wordpress.org/support/topic/polylang-artisteer-bug-in-navmenusphp/)
 *  [Prosiek](https://wordpress.org/support/users/prosiek/)
 * (@prosiek)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/polylang-artisteer-bug-in-navmenusphp/#post-3892338)
 * Oh, never mind, I downloaded the development version, from the zip file and replaced
   the nav-menu.php with the new one and everything works fine !!
    Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Polylang Artisteer, bug in navmenus.php](https://wordpress.org/support/topic/polylang-artisteer-bug-in-navmenusphp/)
 *  [Prosiek](https://wordpress.org/support/users/prosiek/)
 * (@prosiek)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/polylang-artisteer-bug-in-navmenusphp/#post-3892337)
 * I need help with changing php code on my page.
    I don’t know php, so I would 
   very much appreciate if you could tell me what the broken code should look like,
   because I do not know, waht to delete, what to keep 🙁
 *     ```
       // remove current-menu and current-menu-ancestor classes to lang switcher when not on the home page
       	function wp_nav_menu_objects($items) {
       		$r_ids = $k_ids = array();
   
       		foreach ($items as $item) {
       			if (in_array('current-lang', $item->classes)) {
       				$item->classes = array_diff($item->classes, array('current-menu-item'));
       				$r_ids = array_merge($r_ids, $this->get_ancestors($item)); // remove the classes for these ancestors
       			}
       			elseif (in_array('current-menu-item', $item->classes))
       				$k_ids = array_merge($k_ids, $this->get_ancestors($item)); // keep the classes for these ancestors
       ```
   
 * _[Please post code & markup between backticks or use the code button. Your posted
   code may now have been permanently damaged by the forum’s parser.]_
 * Please help and show me the correct code, I should insert in my nav-menu.php 
   file.
    Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Dasboard Not Working Properly in Firefox, Fine IE](https://wordpress.org/support/topic/dasboard-not-working-properly-in-firefox-fine-ie/)
 *  [Prosiek](https://wordpress.org/support/users/prosiek/)
 * (@prosiek)
 * [13 years ago](https://wordpress.org/support/topic/dasboard-not-working-properly-in-firefox-fine-ie/#post-3817595)
 * Have the same problem under Chrome…
    It firmst occured yesterday probably, I 
   have not seen it before… Lack of the editing boars howeever is not the main problem,
   the main problem is that I am unable to edit or post new posts … I cannot insert
   any text, only an image…
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [have an existing site & want additional english version](https://wordpress.org/support/topic/have-an-existing-site-want-additional-english-version/)
 *  Thread Starter [Prosiek](https://wordpress.org/support/users/prosiek/)
 * (@prosiek)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/have-an-existing-site-want-additional-english-version/#post-3006619)
 * And maybe someone has a solution to my other problem, posted here:
    [http://wordpress.org/support/topic/visible-but-inactive-fields-in-user-account?replies=](http://wordpress.org/support/topic/visible-but-inactive-fields-in-user-account?replies=1)
   1 ?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [have an existing site & want additional english version](https://wordpress.org/support/topic/have-an-existing-site-want-additional-english-version/)
 *  Thread Starter [Prosiek](https://wordpress.org/support/users/prosiek/)
 * (@prosiek)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/have-an-existing-site-want-additional-english-version/#post-3006618)
 * I have something in my WP Tools which probably is multi-site (in Polish it is
   called “Creating a network”?) but when I try to start it (after disabling all
   my plugins), it informs me that since I have an existing site running “the network”
   will loose all my existing links/structure… 🙁
 * This is not what I want, I want additional new structure (identical link the 
   existing one), but translated to English and linked (accessible via) to an image
   of a flag.
 * Have you any suggestions or do I have to create new separate WP and simply link
   it to a flag placed somewhere in my original site? 🙁

Viewing 5 replies - 1 through 5 (of 5 total)