How do I remove my site name from the header

Permalink 2 users found helpful
I have tried to remove the site name from the header. If I leave it blank in the dashboard, it just fills it in with concrete5 - I don't want any site name at the top of my site.

Help!

 
globalnerds replied on at Permalink Best Answer Reply
globalnerds
If you have access to your back end file system, you will need to edit your header.php file within your theme. This is usually found in

mysite.com/themes/mytheme/elements/header.php

save your original header.php file (copy it somewhere) just in case!

remove the following code from it:
<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>


That should do it.
pseeney replied on at Permalink Reply
I did that and it didn't work. What did I do wrong? I tried it on both of the default themes and it didn't work on either of them.