-
AuthorPosts
-
August 4, 2017 at 4:35 pm #834390
Hi there, I tried to add code to my website to change the logo per page. But it doesn’t work…anyone tips? Best regards Sylvia
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if( is_page(3364) ) {
$logo = “http://splinter.care/wp-content/uploads/2017/08/Telefoonnummer-magenta.png”;
}
return $logo;
}August 5, 2017 at 10:50 am #834688Hey sniper-x,
Quotation marks in code should be directionless. Please make sure that you’re not useing left and right quotes
‘’
and“”
.Please try this instead:
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if( is_page(3364) ) { $logo = "http://splinter.care/wp-content/uploads/2017/08/Telefoonnummer-magenta.png"; } return $logo; }
Let us know if that works for you.
Best regards,
SarahAugust 5, 2017 at 11:18 am #834699Hi Sarah,
Thanks for your reply, this doesn’t work either. To be sure I copy / past this website styling / quick CSS part of the enfold theme?!
Best regards
SylviaAugust 5, 2017 at 12:23 pm #834741Hi,
Oh! No, you don’t put this in General Styling. You need to add it into the Functions.php file in Appearance > Editor.
Let us know if you need further help.
Best regards,
SarahAugust 5, 2017 at 1:01 pm #834761Yes, it works….any tips to adjust the color beneath the menu per page? Now it is green and I want to change this also per page.
August 5, 2017 at 3:44 pm #834817Hi,
We can offer some custom CSS if you include the url to the page in question so we can take a closer look.Best regards,
MikeAugust 8, 2017 at 12:00 pm #835800Hi Mike,
Did you see my private reply?
Best regards
SylviaAugust 8, 2017 at 6:24 pm #835975Hy Slyvia,
Sorry, no private reply came in. Can you try again? Please try putting something like “Here’s the login” in the body of your reply, then put the url in the Private Section.
Thank you!
Best regards,
SarahAugust 8, 2017 at 7:50 pm #836037Hi Sarah, your tip about the logo change worked. Any suggestions to adjust the color beneath the menu per page? Now it is green and I want to change this also per page. F.e. check the menu click on ‘voor wie’, here you see that the logo changed to magenta. And I would like to change the menu hover bar to become magenta as wel. Thanks Sylvia
- This reply was modified 7 years, 4 months ago by Sarah. Reason: Moved password to Private content
August 9, 2017 at 7:02 am #836170Hi,
I have tried to access your site and the password is wrong.
Best regards,
John TorvikAugust 9, 2017 at 8:27 am #836229Hi there the password works ok on my site
- This reply was modified 7 years, 4 months ago by Sarah. Reason: moved password to Private section
August 9, 2017 at 5:58 pm #836530Hi there!
Yes, the password works. Thank you!
Please try these in Quick CSS:
.header_color .avia-menu-fx { background-color: magenta !important; } /* border under active and hovered main menu items */ .html_header_top .header_color .main_menu ul:first-child >li > ul {border-top-color: magenta !important;} /* border above submenus */ .header_color .main_menu ul:first-child > li > ul > li a:hover { background-color: magenta; } /* hover state of sub menu items */
Please change the color to fit your preference.
I hope that helps!
Best regards,
SarahAugust 10, 2017 at 10:42 am #836894Hi Sarah, thanks…but what I meant is that I want on the homepage the hover color to be green and on the ‘voor wie’ page the hover color should be magenta. Any tips for that? Best regards
August 11, 2017 at 1:08 pm #837431Hi,
I see. Sorry about that! Please use this code instead:
.page-id-3364 .header_color .avia-menu-fx { background-color: magenta !important; } /* border under active and hovered main menu items */ .html_header_top .page-id-3364 .header_color .main_menu ul:first-child >li > ul { border-top-color: magenta !important; } /* border above submenus */ .page-id-3364 .header_color .main_menu ul:first-child > li > ul > li a:hover { background-color: magenta !important; } /* hover state of sub menu items */
Let us know if that works!
Best regards,
SarahAugust 14, 2017 at 12:40 pm #838610Yes this works!!! Thank you so much!
August 14, 2017 at 3:45 pm #838707Great!
We’re happy to help. We’ll close this topic now. For any other questions or issues, feel free to post them here on the forum and we will do our best to assist you.
For your information, you can also take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
We’d also appreciate it if you can take a moment to review our theme if you haven’t already. https://themeforest.net/downloads
Thank you for using Enfold.
Cheers!
Sarah -
AuthorPosts
- The topic ‘Different logo on specific page’ is closed to new replies.