Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to assign specific style to a specific item in navigate menu like "Home" but in plugin not in theme. I think I must write something like this in my plugin:

function change_home(..){
if($item == "home")
//get a css to the item
else
return $className;
    }
add_filter('a properly hook', 'change_home', 10,2);

is there a way to do this?

share|improve this question
    
You can enqueue a css file to the plugin and do your stuff –  Maruti Mohanty Jan 9 at 6:22
    
I know but I need a hook to change a style of one of menu items –  moslem Jan 9 at 6:30
    
It seems you need more that what your question says, can you please add more details to it and if possible an example of what you need and also the working codes –  Maruti Mohanty Jan 9 at 6:33
    
I want to change css of "Home" item in navigation menu –  moslem Jan 9 at 6:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.