Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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!

    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!

    Prosiek

    (@prosiek)

    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…

    Thread Starter Prosiek

    (@prosiek)

    And maybe someone has a solution to my other problem, posted here:
    http://ww.wp.xz.cn/support/topic/visible-but-inactive-fields-in-user-account?replies=1 ?

    Thread Starter Prosiek

    (@prosiek)

    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)