-
AuthorPosts
-
April 5, 2017 at 3:56 pm #772629
Hello,
in the Enfold-Theme-options i can set the Logo (PNG) for my enfold-site. Now i want to set another logo, if someone choose a special site. Can i set another logo for a page?best regards, daniel
April 5, 2017 at 11:51 pm #772900Hey danielrad78,
Yes, it’s possible with some css tweaks. Can you post a link where you want the logo to change? so we can give an accurate css code for it.
Best regards,
NikkoApril 6, 2017 at 9:03 am #773022Yes, see private Content ;-)
April 6, 2017 at 9:17 am #773031Is it also possible, that i display on a site another Main-Menü in the header?
April 7, 2017 at 9:41 am #773801Hi,
The link for standard logo you posted doesn’t seem to have a logo, though it shows 6 images, the reason I asked for the link so I can know the page id which can be used for the custom code, anyway, the css code should look something like this (which you need to add in Quick CSS, located in Enfold > General Styling):
.page-id-xx .logo img { content: url(https://www.yourdomain.com/your_logo.png); }
xx in page-id is basically the page id number, and http://www.yourdomain.com/your_logo.png is your new image/logo’s url.
As for having different menu, it would require deep customization and changes to this core file enfold/includes/helper-main-menu.php, the easiest way to do this is to have a 1 single menu, then assign a class name for menu item, which you can use to hide or show on specific pages. Hope this helps :)
Regards,
NikkoOctober 2, 2017 at 3:14 pm #859247Hi. I used this quick CSS to put different logos on different pages of my site and it worked perfectly. However, I was wondering how I can have those logos link to a different url than the homepage. Could someone please tell me what code I would need to add to do that?
Thanks,
RachelOctober 2, 2017 at 3:18 pm #859250Hey Rachel,
Please use following code in Appearance > Editor > Functions.php file instead
add_filter('avf_logo_link','av_change_logo_link'); function av_change_logo_link($link) { if(is_page(9) ) { $link = "http://kriesi.at"; } return $link; } add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_page(9) ) { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } return $logo; }
and replace 9 with your pages ID
Regards,
YigitOctober 2, 2017 at 4:57 pm #859287Thank you, that worked! What if I want to do that for multiple pages?
October 2, 2017 at 5:20 pm #859295Hi!
Then you can use the code as following
add_filter('avf_logo_link','av_change_logo_link'); function av_change_logo_link($link) { if(is_page(array(59,79))) { $link = "http://kriesi.at"; } return $link; } add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_page(array(59,79))) { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } return $logo; }
Best regards,
YigitOctober 2, 2017 at 6:24 pm #859317That’s perfect! Thank you!
October 2, 2017 at 6:43 pm #859327So sorry, one more question…
I want to do the same thing for additional pages with a different logo to a 2nd URL. Is that possible?October 3, 2017 at 6:15 pm #859712Hi,
Please use the code as following
add_filter('avf_logo_link','av_change_logo_link'); function av_change_logo_link($link) { if(is_page(array(59,79))) { $link = "http://kriesi.at"; } if(is_page(array(69,89))) { $link = "http://kriesi.at/2/"; } return $link; } add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_page(array(59,79))) { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } if(is_page(array(69,89))) { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo2.png"; } return $logo; }
Best regards,
YigitOctober 3, 2017 at 7:01 pm #859743Thank you so much! Sorry for all the questions, I really appreciate your help!
October 3, 2017 at 7:06 pm #859744Hey,
Not at all! :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Best regards,
YigitP.S.: Please consider reviewing Enfold on ThemeForest if you have not already – https://themeforest.net/downloads :)
-
AuthorPosts
- The topic ‘Different Logo on different sites’ is closed to new replies.