I am using Twenty twentythirteen and i use page widget.
I am using Page widget plugin so in a inner pages i can put left sidbar on different page.
On my left sidebar there are few links i want them to be highlighted on
different pages. like if you are on About us page , then about us page link will highlight and if you are on services page then this link will highlight.
In a simple static html/css website it is very easy to use. You just need to put current class on each page and it works for you.
Know how can i use them in a widget.
I try many things like i find thuis function but didn’t
add_filter('widget_text','execute_php',100);
function execute_php($html){
if(strpos($html,"<"."?php")!==false){
ob_start();
eval("?".">".$html);
$html=ob_get_contents();
ob_end_clean();
}
return $html;
}
Looking forward to hear from experts.