Different logo in single page
Hey,
I would like to use different logo in single page only.
I need this logo https://pearsca.spassl1.com.au/site/wp-content/uploads/2020/08/pears-wealth-advisors-logo.png
in this page - https://pearsca.spassl1.com.au/smsf-advice/
instead of this logo - https://pearsca.spassl1.com.au/site/wp-content/uploads/2020/07/pears-logo-px-2.png
Does anyone can help?
Comments
Sadly, it is not possible to have different layouts/logos for Blog pages.
I was updating from functions.php by using this statement below:
(you just only need to change the page number 676 and the image url
// Logo for single page
function change_logo_on_single($html) {
if(is_page( 676 )){
$html = preg_replace('/<img(.*?)\/>/', '<img src="/site/wp-content/uploads/2020/08/pears-wealth-advisors-logo.png" class="custom-logo" alt="" itemprop="logo" />', $html);
}
return $html;
}
add_filter('get_custom_logo','change_logo_on_single');