Removing site name from top of every page

Permalink
I use 5.5.2 and removing the following from header.php at line 31 helped remove the site name displayed on each page.

<h1 id="logo"><!--
         --><a href="<?php   echo DIR_REL?>/"><?php   
            $block = Block::getByName('My_Site_Name');  
            if( $block && $block->bID ) $block->display();   
            else echo SITE;
         ?></a><!--
      --></h1>

 
adajad replied on at Permalink Reply
adajad
That depends on what theme you use...
kennethwinfrey replied on at Permalink Reply
Thank you adajad! My mistake for leaving out that I am editing the default theme. ;-)