-
AuthorPosts
-
February 18, 2016 at 2:05 am #585050
Hi chaps, as titles reads!
Is there a way to achieve this please?
ThanksFebruary 18, 2016 at 2:10 am #585052Hey evtilsley!
Please add following code to functions.php file in Appearance > Editor
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; }
9 here is the page ID. Please change it to match your page’s ID and then change the link to your logo
Cheers!
YigitFebruary 18, 2016 at 2:41 am #585082Thanks – anywhere specific in functions.php?
Tried it a couple of places & no change to the targeted page.The code I’ve added:
/* 18.02.2016 – show outlet logo on Outlet page */
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if(is_page(2207) )
{
$logo = “http://ivorytowerbridal.co.uk/wp-content/uploads/2016/02/IT-Outlet-logo-v0.3.png”;
}
return $logo;
}The page:
http://ivorytowerbridal.co.uk/?page_id=2207Thanks !!
February 18, 2016 at 2:45 am #585085Hey!
Please use the code as following
/* 18.02.2016 – show outlet logo on Outlet page */ add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_product_category()) { $logo = "http://ivorytowerbridal.co.uk/wp-content/uploads/2016/02/IT-Outlet-logo-v0.3.png"; } return $logo; }
Cheers!
YigitFebruary 18, 2016 at 2:55 am #585091Shoot I’m just now getting:
Server error
500
This couldnt be me, could it !?!?!?
February 18, 2016 at 2:57 am #585093Hey!
Well, code does look fine. If you do not mind posting FTP logins here privately, we can fix the error for you. If you would like to remove it, you can go to wp-content/themes/enfold/functions.php file and remove the code
Cheers!
YigitFebruary 18, 2016 at 3:16 am #585107Is the page still loading for you? I get an error & unsure whether it’s the hosting company, or something I’ve just done!
February 18, 2016 at 3:17 am #585108Hey!
No it is not. I believe it is because of the code. If you do not mind posting FTP, we can look into it.
Cheers!
YigitFebruary 18, 2016 at 3:19 am #585110[18-Feb-2016 00:50:04 UTC] PHP Parse error: syntax error, unexpected ‘:’ in /home2/tradesm5/public_html/ivorytowerbridalco/wp-content/themes/enfold/functions.php on line 67
copied from http://ivorytowerbridal.co.uk/error_log
February 18, 2016 at 3:23 am #585111Hi!
Please make sure that double quotes are opened and closed properly as i posted here – https://kriesi.at/support/topic/one-page-needs-different-logo-in-the-header/#post-585085
Cheers!
YigitFebruary 18, 2016 at 3:41 am #585113SErver contact has replaced theme file. Site’s up again but footer wrong – off topic but – I’m out of practice with WP – where do I fix this ??!
February 18, 2016 at 3:43 am #585114IGNORE I had to re-update the theme
February 18, 2016 at 3:45 am #585115Can I set you up as a USER to look at correctly adding those lines into functions.php? I dont want to break it again
February 18, 2016 at 12:31 pm #585335Hey!
Sure, please post WordPress admin logins here privately. To be on the safe side, please post FTP credentials as well.
Best regards,
YigitFebruary 18, 2016 at 12:49 pm #585354Private content follows..
- This reply was modified 8 years, 9 months ago by evtilsley.
February 19, 2016 at 12:08 pm #585968Hi – FTP details are:
February 22, 2016 at 1:49 pm #587094Hey!
You have Enfold installed twice on your installation. Please remove the one that you are not using.
Regards,
YigitFebruary 22, 2016 at 2:28 pm #587129done. No idea why/how
February 22, 2016 at 2:45 pm #587149Hi!
I changed the code to following one
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_woocommerce() && is_archive()) { $logo = "http://ivorytowerbridal.co.uk/wp-content/uploads/2016/02/IT-Outlet-logo-v0.3.png"; } return $logo; }
Please review your website now
Cheers!
YigitFebruary 22, 2016 at 2:49 pm #587151FANTASTIC. I didnt want to break something again.
Is there a line of quick CSS to increase the dimensions of the new logo on that page?
http://ivorytowerbridal.co.uk/?page_id=2207THANKS
February 22, 2016 at 2:52 pm #587156Hi!
Please add following code to Quick CSS
.archive.woocommerce .logo, .archive.woocommerce .logo a, .archive.woocommerce .logo img { max-width: 100%!important; }
Regards,
YigitFebruary 22, 2016 at 3:14 pm #587182AWESOME worked perfectly. Close this thread :)
-
AuthorPosts
- The topic ‘One page needs different logo in the header’ is closed to new replies.