Editing Front Page Header

Editing Front Page Header

d morte -
回帖数:2
Hello All,
I'm not sure if this is the correct place to post, and so I apologize if it should be placed elsewhere.

I'm having two issues:

1. Header "fullname" --- I'm trying to figure out where I can turn off the "fullname" that gets populated into the header. I know that you control what is written in the Front Page Settings through the admin panel, but if you put in   the firefox tab name does not get populated.

2. I'm looking for the code that decides where the login information is displayed in the header. Instead of it being in the top right, I may want it to be moved to the center, or even left! Very exciting I know.

Any help would be appreciated!
回复d morte

Re: Editing Front Page Header

Mary Evans -
Hi Drew,

I'll try and answer your questions...

1. Look for what's in between the <h1></h1> tags in header.html
the php code brings the fullname into the header at this point. This code appears twice in both headermain and header-home - See example below:-

Example: (taken from Autumn Theme)

<div id="header-home" class="clearfix">
<div class="headerimg2">
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
</div>
<div class="headerimg1">&nbsp;</div>
</div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading
?>
<div id="header" class="clearfix">
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
</div>
<?php } ?>

2. Look for headermenu also in header.html and change how you want them to appear via the CSS stylesheets in your theme's folder.

<div id="header-home" class="clearfix">
<div class="headerimg2">
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
</div>
<div class="headerimg1">&nbsp;</div>
</div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading
?>
<div id="header" class="clearfix">
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
</div>
<?php } ?>

I hope this helps?

Mary