Forums

[resolved] How do I remove the blog title from the header? (7 posts)

  1. labedford
    Member
    Posted 1 month ago #

    I am using elements of SEO theme but have replaced the header image with my own. My image has my blog name on it. I have left the blog title in the general section blank as a temporary solution to avoid my blog name being shown above the image.

    I now need to have my blog name for a newsletter plugin but can't add it without it showing at the top of my blog.

    Any advice on how to stop that showing?

    Thanks.

  2. cais
    Member
    Posted 1 month ago #

    In your header.php file you will find (around lines 38-41) the following:

    <div id="masthead">
      <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
      <h3><?php bloginfo('description'); ?></h3>
    </div>

    This displays your blog name and tagline respectively.

    You could change the code to something like this:

    <div id="masthead">
      <h1><a href="<?php // bloginfo('url'); ?>"><?php // bloginfo('name'); ?></a></h1>
      <h3><?php // bloginfo('description'); ?></h3>
    </div>

    Note the '//' to comment out the php code; or, you could simply remove the code lines altogether. Personally, I would go with the "comment" solution.

  3. labedford
    Member
    Posted 1 month ago #

    Hello cais

    I tried what you suggested and the filled in the blog title info in general section and it still displayed on my homepage.

    </div>
    
    	<div id="masthead">
    		<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    		<h3><?php // bloginfo('description'); ?></h3>
    	</div>

    I copied this from my header file to show what I changed.

    Any other suggestions?

  4. cais
    Member
    Posted 1 month ago #

    The edits you made are only commenting out the tagline for your theme, you still can follow the example code above to comment out the title line.

    Try copying and pasting the sample code I posted above into your header.php file (make sure you have a backup first). See how that works for you ...

  5. labedford
    Member
    Posted 1 month ago #

    Thanks Cais. It has worked. :D

  6. labedford
    Member
    Posted 1 week ago #

    I have just realised that whenever I create a new page the title reappears on that page. Is there a way around this?

  7. labedford
    Member
    Posted 1 week ago #

    Found another 2 header files and changed them now it is gone.

Reply

You must log in to post.

About this Topic