Tagged: different logo, transparency
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
June 26, 2015 at 3:09 am #464742
Thanks for your support. This code works great if I have set “Header Transparency and Visibility” to “No Transparency.” What would the could be if I want to swap out the logo with the setting “Transparent and Glassy Header” or “Transparent Header.” Under those settings it reverts to the transparency logo set in the ENFOLD control panel under “Header.”
add_filter('avf_logo','av_change_logo_url'); function av_change_logo_url($url) { if( is_page('certification-program') ) { $url = "http://localhost:8888/sunny/wp-content/uploads/2015/06/integraltouchinstitute_logo.png"; } return $url; }
June 26, 2015 at 3:05 pm #465010Hi stupaul22!
Please add following code to Functions.php
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { if( is_page('certification-program') ) { $sub .= "<img src='http://localhost:8888/sunny/wp-content/uploads/2015/06/integraltouchinstitute_logo.png' />"; } return $sub; }
Cheers!
Yigit- This reply was modified 9 years, 5 months ago by Yigit.
June 26, 2015 at 7:52 pm #465111When I added that code to the functions.php file in my child theme folder it broke the website. Can you check it for accuracy?
This is what I have:
add_filter('avf_logo','av_change_logo_url'); function av_change_logo_url($url) { if( is_page('certification-program') ) { $url = "http://localhost:8888/sunny/wp-content/uploads/2015/06/integraltouchinstitute_logo.png"; } if( is_page('thailand-and-bali') ) { $url = "http://localhost:8888/sunny/wp-content/uploads/2015/06/integraltouchinstitute_logo.png"; } return $url; } add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { if( is_page('certification-program') ) $sub .= "<img src='http://localhost:8888/sunny/wp-content/uploads/2015/06/integraltouchinstitute_logo.png' />"; } return $sub; }
June 26, 2015 at 8:36 pm #465114I found the missing close curly bracket and the site no longer breaks but this code seems to have no effect.
June 29, 2015 at 3:41 pm #465896 -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.