• I’ve been trying to figure this out for days, and I’ve been messing around with the header code with no luck.

    I use the Neoclassical theme, and it is set up to have the blog title and RSS feed button positioned above the header image.

    However, my blog title is in my header and I’ve made my own RSS feed button, so I would like to remove both of these elements.

    I figured out the RSS feed button, but I can’t figure out the title. I would just leave it blank in the “Blog Title” area of my settings, but when I do, my blog title does not show up in Google (or, I would assume, any other) search, as shown here:

    https://www.google.com/search?hl=en&q=penny+plastic&btnG=Google+Search&aq=f&oq=

    I know I should be able to fix this in the code, but I don’t know HTML all that well and I haven’t had any luck.

    Any insight would be much appreciated!

    Thanks ??

Viewing 15 replies - 1 through 15 (of 26 total)
  • Thread Starter pennyplastic

    (@pennyplastic)

    For the time being I’ve just made the title white in the stylesheet, but if anyone can offer up a better solution, that would be great.

    Cheers.

    One option would be to add

    Display: hidden;

    to the proper section of your theme’s stylesheet.css. I’m not real familiar with your theme, but I’d look at the “#masthead h1” section as a likely candidate.

    In your theme look at header.php (if it doesn’t exist see the top bit of index.php).

    You will see

    <div id="masthead">
    <div id="logo"><a href="<?php some code ?>" rel="nofollow"><?php some other code ?></a></div>
    <h1><?php title code; ?></h1>
    </div>

    Delete the entire line with the <h1> tags. When you reinstate your blog title from the dashboard you should see that it’s gone but shows up as the page title (in the top of Internet Explorer).

    Sorry, you actually want to delete:

    <a href="<?php some code ?>" rel="nofollow"><?php some other code ?></a>

    As I don’t know your theme you might want to replace it with &nbsp;.

    Also get rid of the two <h1> tags.

    Thread Starter pennyplastic

    (@pennyplastic)

    Chris,

    This is what I have under “masthead” in my stylesheet:

    /*---:[ #masthead styles ]:---*/
    
    #masthead #rss_subscribe { width: 40px; height: 40px; float: right; }
    
    	#masthead #rss_subscribe a { display: block; width: 40px; height: 40px; background: url('images/icon_rss.gif') no-repeat; text-indent: -9999px; outline: none; }
    
    #masthead #logo { font: bold 3.2em Georgia, "Times New Roman", Times, serif; letter-spacing: -1px; }
    
    	#masthead #logo a, #masthead #logo a:visited { color: #FFF; }
    
    	#masthead #logo a:hover { color: #FFF; text-decoration: none; }
    
    #masthead h1, #masthead #tagline { font: normal 1.4em/1.42857em Verdana, serif; padding: 0; color: #FFF; text-align: left; }

    I assume the display:block is for the RSS button?

    bsut, I will look into the index.php code right now, I know that the code you provided is not in my header code….

    From what you just pasted, change the last line to:

    #masthead h1, #masthead #tagline { display: hidden; font: normal 1.4em/1.42857em Verdana, serif; padding: 0; color: #FFF; text-align: left; }

    and see what happens.

    When changing stylesheets, be sure to clear your browser’s cache to make sure you’re seeing the changes properly! (ctrl-F5 is a short cut for many browsers).

    Thread Starter pennyplastic

    (@pennyplastic)

    Following is the top portion of the index.php code:

    <?php $post_count = 1; ?>
    
    <?php get_header(); ?>
    
    	<div id="content_box">
    
    		<div id="left_box">
    
    			<div id="content">
    <?php 		if (have_posts()) : ?>
    
    				<div id="content_inner">
    <?php
    				while (have_posts()) : the_post(); ?>
    <strong>
    					<h2<?php if ($post_count == 1) echo(' class="top"'); ?>><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2></strong>

    The portion that is bolded controls the post titles, I don’t seen anything about the blog title in this section.

    Thread Starter pennyplastic

    (@pennyplastic)

    Hey Chris, thanks for working with me on this.

    I cleared my cache and made the changes and it’s still there!

    Thread Starter pennyplastic

    (@pennyplastic)

    This is my header code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    
    <head profile="https://gmpg.org/xfn/11">
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    	<title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } else { bloginfo('description'); } ?></title>
    
    	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/custom.css" type="text/css" media="screen" />
    	<!--[if lte IE 7]>
    	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ie7.css" />
    	<![endif]-->
    	<!--[if lte IE 6]>
    	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ie6.css" />
    	<![endif]-->
    	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<?php wp_head(); ?>
    </head>
    <body class="custom">
    
    <div id="container">
    <div id="page">
    
    	<div id="masthead">
    		<div id="logo"><a href="<?php bloginfo('url'); ?>"<?php if (is_home()) echo(' rel="nofollow"'); ?>><?php bloginfo('name'); ?></a></div>
    		<?php if (is_home()) { ?><h1><?php bloginfo('description'); ?></h1><?php } else { ?><div id="tagline"><?php bloginfo('description'); ?></div><?php } ?>
    
    	</div>
    	<div id="rotating_image">
    <?php include (TEMPLATEPATH . '/rotating_images.php'); ?>
    	</div>

    Again, I don’t know much about HTML, but I am guessing this code pretty much refers back to the stylesheet? I wonder why it’s not changing, seems so simple.

    @pennyplastic Can you post some of what is in your header code? Anything after the <body> tag.

    Thread Starter pennyplastic

    (@pennyplastic)

    Let me know if you need anything further than what I provided above.

    I also tried to “push” the text off the page per Codex:

    h1 {
    font-size: 0;
    text-indent: -1000px; }

    This didn’t do anything either, so obviously there’s another portion of the code that needs to change…

    Thread Starter pennyplastic

    (@pennyplastic)

    Off topic, but….I know there are programs you can use to “test” code as you work on it. What are some of these? I have Adobe Go Live that always tries to open when I open php files on my computer, but I always end up working on code in a text editing program.

    Just curious as I’d like to be able to test design changes on my blog without my readers being subjected to all the funky stuff that is bound to show up….

    Replace

    <div id="container">
    <div id="page">
    <div id="masthead">
    <div id="logo"><a href="<?php bloginfo('url'); ?>"<?php if (is_home()) echo(' rel="nofollow"'); ?>><?php bloginfo('name'); ?></a></div>

    with

    <div id="container">
    <div id="page">
    <div id="masthead">
    <div id="logo">&nbsp;</div>

    That will remove the blog title text (he says).

    I use the Firebug extension for Firefox. It is priceless for this sort of stuff.

    Thread Starter pennyplastic

    (@pennyplastic)

    bsut,

    Did this and yes, it is no longer a “hidden” link (if the cursor is up at the top it does not prompt a link). But, there is a still a space above the header, but at this point, I am happy.

    It’s still not showing up in Google, but, as Chris has told me before, this has something to do with waiting for it to be reindexed, right?

    Thank you both!

    Chris, thanks for the recommendation.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘I Need To Make “Blog Title” Invisible In Neoclassical Theme. Help!’ is closed to new replies.