Current User: Guest
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Removing current post title from header

No Status Selected
No Tags
UserPost

7:18 pm
December 1, 2009


admin

New Member

posts 1

 
1

Post edited 11:43 am – December 2, 2009 by Jeremy Clark


Hi Jeremy,
I am new to coding and love the look and feel of this theme- the learning curve is made quite a pleasure. :)

Can you tell me how to disable the current post title from the header area? It shows up over the blog/site title and then invades the header image. I tried a command you recommended elsewhere (which I cannot find for the life of me now) that read something like { header …. no display } in the

<h1>

level at 'current page' line 13 but it just made the entire text disappear.

Thanks for a hot theme!

Oly

6:50 am
December 2, 2009


Jeremy Clark

Admin

posts 484

 
2

In the header.php file look for this block of code.

<div id="headerimg">
<h1><?php if ( is_single() ) { ?><a><?php wp_title('',true,''); ?></a><?php } else { ?><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a><?php } ?></h1>
<?php if ( is_single() ) { $description = "<a href="".get_bloginfo('home')."">".get_bloginfo('name')."</a>"; }
else {$description = get_bloginfo('description');}
if (!empty ($description)) { ?>
<span class="description"><?php echo $description; ?></span>
<?php } ?>

Change it to this.

<div id="headerimg">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php if $description = get_bloginfo('description');}
if (!empty ($description)) { ?>
<span class="description"><?php echo $description; ?></span>

This will stop the post title from displaying in the header on always display the Blog title. I'll also look into make that an option in the next version of my theme 1.7.1, keep an eye out for it in the next week or so.

Like Techozoic?
Rate it here or donate securely with PayPal to support my further development of Techozoic.

1:48 am
December 10, 2009


leonard j schwartz

Guest

 
3

Since the prior work-around to center the text did not work, I tried to just eliminate the header altogether, following the instructions in the previous post. Now I am getting the following error message:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home8/equityce/public_html/wp-content/themes/techozoic-fluid/header.php on line 68

Please, please help me ASAP as I will be in real trouble at work if I cannot get the podcast working by Friday morning. Thanks.

The url is, again: http://www.equitycemterradio.org

8:17 am
December 10, 2009


Jeremy Clark

Admin

posts 484

 
4

Leonard sorry to hear that didn't work for you but to completely remove the header. Add this to the custom CSS section in the options. This wont actually delete the header but the browser won't display it anymore, this is better for a search engine as the spiders will still see the H1 heading and know that the title of the blog.

#headerimg {display:none}

Like Techozoic?
Rate it here or donate securely with PayPal to support my further development of Techozoic.

No Tags

Reply to Topic:
Removing current post title from header

Please include the version number of theme that your asking about. As well as a link to the website where the problem is happening if applicable. Thank you.

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
2 + 8
   


No Status Selected


About the Jeremy Clark – TechNet.com Forum

Forum Timezone: America/New_York

Most Users Ever Online: 66

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 3
Topics: 359
Posts: 1268

Membership:

There are 307 Members
There have been 120 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

BartC – 107
demoondoggie – 23
Heather – 21
SarahM – 15
mpromp2 – 15
Monica – 15

Recent New Members: livewise, mpromp2, kevin, cbegg50, kismetconsulting, AdminKim