• Resolved labedford

    (@labedford)


    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter labedford

    (@labedford)

    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?

    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 …

    Thread Starter labedford

    (@labedford)

    Thanks Cais. It has worked. ??

    Thread Starter labedford

    (@labedford)

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

    Thread Starter labedford

    (@labedford)

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I remove the blog title from the header?’ is closed to new replies.