Different logo in single page

Comments

  • Hello,
    You will have to create another layout for your website, see screen:

    Then, to attach it, just select the layout from the dropdown menu while editing the page.

    thanks
  • Hello,

    How can we do this on Blog pages?

    Thank you.
  • Hello @b1rkan,
    Sadly, it is not possible to have different layouts/logos for Blog pages.
    It is limited only for website pages.

    Best regards


  • edited October 2020
    Hi,

    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');


Sign In or Register to comment.