Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
Share
LinkBack Thread Tools
Old 10-21-2012, 03:37 AM   #1
HyperActive Warrior
 
Join Date: Jul 2012
Posts: 116
Thanks: 9
Thanked 2 Times in 2 Posts
Default Where and how to input my website header?

Hi, I would like to insert a new header but am not sure how and where exactly to put it. I assume it would go in the header.php section but how and where would I put my own custom logo?, also would I need to download the logo to my media images on my wordpress site?

Here is my code for header.php

<?php global $theme; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php function wp_initialize_the_theme() { if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish") ) { wp_initialize_the_theme_message(); die; } } wp_initialize_the_theme(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php $theme->meta_title(); ?></title>
<?php $theme->hook('meta'); ?>
<link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/reset.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/defaults.css" type="text/css" media="screen, projection" />
<!--[if lt IE 8]><link rel="stylesheet" href="<?php echo THEMATER_URL; ?>/css/ie.css" type="text/css" media="screen, projection" /><![endif]-->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, projection" />

<?php if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?>
<?php wp_head(); ?>
<?php $theme->hook('head'); ?>

</head>

<body <?php body_class(); ?>>
<?php $theme->hook('html_before'); ?>

<div id="container">

<div id="header">

<div class="logo">
<?php if ($theme->get_option('themater_logo_source') == 'image') { ?>
<a href="<?php echo home_url(); ?>"><img src="<?php $theme->option('logo'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" /></a>
<?php } else { ?>
<?php if($theme->display('site_title')) { ?>
<h1 class="site_title"><a href="<?php echo home_url(); ?>"><?php $theme->option('site_title'); ?></a></h1>
<?php } ?>

<?php if($theme->display('site_description')) { ?>
<h2 class="site_description"><?php $theme->option('site_description'); ?></h2>
<?php } ?>
<?php } ?>
</div><!-- .logo -->

<div class="header-right">
<?php $theme->option('header_banner'); ?>
</div><!-- .header-right -->

</div><!-- #header -->

<div class="clearfix">
<?php if($theme->display('menu_primary')) { $theme->hook('menu_primary'); } ?>

<div id="topsearch">
<?php get_search_form(); ?>
</div>
</div>

<?php if($theme->display('menu_secondary')) { ?>
<div class="clearfix">
<?php $theme->hook('menu_secondary'); ?>
</div>
<?php } ?>



Thanks.Danny
dannyboy30 is offline   Reply With Quote
Old 10-21-2012, 03:49 PM   #2
xunixan
 
Join Date: Jun 2011
Location: Canada
Posts: 14
Thanks: 0
Thanked 5 Times in 5 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Default Re: Where and how to input my website header?

What theme are you using? In WordPress you should have an option, usually in Theme options to define a custom header. Upload the header using media manager, then paste the URL path of the header file in your options.
xunixan is offline   Reply With Quote
Old 10-21-2012, 03:53 PM   #3
HyperActive Warrior
 
Join Date: Aug 2011
Location: Indonesia
Posts: 94
Thanks: 7
Thanked 16 Times in 13 Posts
Default Re: Where and how to input my website header?

Quote:
Originally Posted by xunixan View Post
What theme are you using? In WordPress you should have an option, usually in Theme options to define a custom header. Upload the header using media manager, then paste the URL path of the header file in your options.
Yes... This is a easy choice.
or you can edit
<img src="<?php $theme->option('logo'); ?>

with your url of your logo
bosspulsa is offline   Reply With Quote
Old 10-23-2012, 02:26 PM   #4
Content Guru
War Room Member
 
TheContentAuthority's Avatar
 
Join Date: Sep 2009
Location: Pittsburgh, PA US
Posts: 1,410
Thanks: 49
Thanked 361 Times in 321 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Default Re: Where and how to input my website header?

Dannyboy30,

As mentioned by xunixan, there should be a spot within WP for you to upload a new image for the header. Make sure it is scaled appropriately otherwise it won’t look right. It really shouldn’t matter which theme you are using to do this and you should not have to modify code to get a new image in there.

Here is more info on how to modify the header (note: if you have a specific theme you can search for tutorials on how to manage the header for that specific theme).

WordPress › Support » How to Upload a New Header

Hope that helps you,

Shawn



We customize your blog, eBook, press release and backlink content with your message.

The Content Authority
TheContentAuthority is offline   Reply With Quote
Old 10-23-2012, 09:50 PM   #5
Ninja Warrior Fighter
 
ninjutsu's Avatar
 
Join Date: Oct 2012
Location: Earth
Posts: 48
Thanks: 1
Thanked 2 Times in 2 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via AIM to ninjutsu Send a message via MSN to ninjutsu Send a message via Yahoo to ninjutsu
Default Re: Where and how to input my website header?

Quote:
Originally Posted by TheContentAuthority View Post
Dannyboy30,

As mentioned by xunixan, there should be a spot within WP for you to upload a new image for the header. Make sure it is scaled appropriately otherwise it won’t look right. It really shouldn’t matter which theme you are using to do this and you should not have to modify code to get a new image in there.

Here is more info on how to modify the header (note: if you have a specific theme you can search for tutorials on how to manage the header for that specific theme).

WordPress › Support » How to Upload a New Header

Hope that helps you,

Shawn


Thanks for the answer . It is so useful

"what you give is what you get"
ninjutsu is offline   Reply With Quote
Old 10-23-2012, 10:13 PM   #6
3IN Consulting Group
 
Join Date: Oct 2012
Location: Canada
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Where and how to input my website header?

Yes, header.php is the right place. You can add it with a div. The image should be in your local, maybe theme images folder.
Seoptimistic is offline   Reply With Quote
Old 10-24-2012, 05:45 AM   #7
Seems LeGit!
War Room Member
 
gcampton's Avatar
 
Join Date: Aug 2012
Location: Aus
Posts: 85
Thanks: 15
Thanked 45 Times in 38 Posts
Default Re: Where and how to input my website header?

Code:
<div id="header">
 
        <div class="logo">
        <?php if (('themater_logo_source') == 'image') { ?> 
            <a href="<?php echo home_url(); ?>"><img  src="<?php ('logo'); ?>" alt="<?php  bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>"  /></a>
        <?php } else { ?> 
            <?php if(('site_title')) { ?> 
                <h1 class="site_title"><a href="<?php echo  home_url(); ?>"><?php ('site_title');  ?></a></h1>
            <?php } ?> 
 
            <?php if(('site_description')) { ?> 
                <h2 class="site_description"><?php ('site_description'); ?></h2>
            <?php } ?> 
        <?php } ?> 
        </div><!-- .logo -->
 
        <div class="header-right">
            <?php ('header_banner'); ?> 
        </div><!-- .header-right -->
 
    </div><!-- #header -->
it's right there...

()_()
(o.O) <<<----- Find out why this bunny is killing it more than you online. Click Here.
(")("")
gcampton is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Bookmarks

Tags
header, input, website

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 11:58 AM.