I believe that it will be hard for you to accomplish that without some javascript because you are adding the link manually. However, you can achieve the same thing in another way:
Most wordpress themes come with a body_class()
function in the <body>
tag. That function adds several classes to the body tag that allows you to better target your content with css. One of the classes added is page-id-* (where * is the page ID). You can read more about body_class here.
So, in your case, the Overview page will also have that page-id-* class that you can use to target your menu.
In you css you can write something like:
.page-id-20 ul.sidebar-menu li:first-child{
color:green;
}
This assumes a few things:
-
The Overview page ID is 20. It could be any number, just look at your source code to find out. Or look in the backend to find out the page id.
-
You have given a class
.sidebar-menu
to your UL side menu. (Right now, your code doesn’t have a class) - The Overview link is always the first link on the list.
- The menu is the same on every page.