-
Anonymous
Hi there,
I’d like to create custom logos and colors depending on what single page (not articles) the visitor is on. What’s the smartest way to do it?
Thanks for your help!
-
Anonymous
I found this filter for a custom logo:
// If we are on the about page, set our custom logo
if ( is_page( ‘about’ ) )
return ‘URL’;// Or else, set the regular logo
return $logo;}
But I still don’t know how to adjust the navigation background color, depending on what page the user is. Is there a filter or hook for this?
Edit: Seems like the filter above does only work for desktop, but not for mobile.
-
Anonymous
Ok nevermind, found a solution with custom css and the right filters.
-
David
Glad to hear that!
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.