• Hello, sorry I dont know how to start but basically I’ve tried playing around with my codes and not working. Would appreciate if someone could advise how to highlight the sidebar for current page.

    Here is part of the sidebar code:

    foreach ( (array) $menu_items as $key => $menu_item ) {
    
    				if($menu_item ->post_parent== $parent[0])
    				{
    
    			     		echo "<div class='menu-single'><a href='{$menu_item ->url}'>{$menu_item ->title}</a><br></div>";
    			     	}else{
    					echo "<div class='menu-single-parent'><li><a href='{$menu_item ->url}'>{$menu_item ->title}</a></li></div>";
    				}
    			}

    Thanks in advance, sorry if you felt my english bad ??

Viewing 1 replies (of 1 total)
  • Thread Starter hilman79

    (@hilman79)

    or is there a way to remove the link “<a href=……..” if in current page? tried play around but somehow it shows double link (one with and other one without link) :-/

    anyway, advise on highlighting the current page is good enough ?? just wondering if could remove the link as well ??

Viewing 1 replies (of 1 total)
  • The topic ‘Highlighting current page in sidebar’ is closed to new replies.