-
AuthorPosts
-
May 11, 2015 at 1:55 pm #442438
I want to see a different logo depending on the page.
I had added this code to helper-main-menu-php :
global $post;
if ( is_page(3279) || ‘3279’ == $post->post_parent || is_page(3342) || ‘3342’ == $post->post_parent || is_page(3345) || ‘3345’ == $post->post_parent || is_page(4096) || ‘4096’ == $post->post_parent || is_page(4109) || ‘4109’ == $post->post_parent || is_page(1167) || is_page(5169))
{
echo avia_logo(AVIA_BASE_URL.’../../uploads/2014/07/logo-CLCF-web-e1406472780943.png’, $addition, ‘strong’, true);
}
else
{
echo avia_logo(AVIA_BASE_URL.’../../uploads/2013/04/TCatCL-logo-transparent-small-resized.png’, $addition, ‘strong’, true);
}
This was working, but does not anymore. Can you advise? Has there been a theme update? logo-CLCF-web-e1406472780943.png is never displayed it is always TCatCL-logo-transparent-small-resized.png
Thanks in advance.
May 11, 2015 at 2:03 pm #442442Hi BSTECH!
Please add following code to Functions.php file instead
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_page(array(3279,3342,3345,4096,4109,1167,5169) )) { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } return $logo; }Best regards,
Yigit-
This reply was modified 10 years, 5 months ago by
Yigit.
May 11, 2015 at 10:23 pm #442727Hi.
We added the code to functions.php and got this error: unexpected ‘add_filter’ (T_STRING) in /homepages/9/d538204811/htdocs/clickandbuilds/Carrslane/wp-content/themes/enfold/functions.php on line 89
Does it need to be added to a particular line?
May 12, 2015 at 5:16 pm #443179Hey!
No actually it should have worked fine. Do you mind creating a temporary admin login and posting it here privately?
Best regards,
YigitMay 12, 2015 at 5:23 pm #443191Thanks for getting back to me. It’s working now – there was a bracket missing on the code!
This can be closed now.
-
This reply was modified 10 years, 5 months ago by
-
AuthorPosts
- The topic ‘Different logo depending on the page’ is closed to new replies.
