Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > Content Mangement Systems – CMS > WordPress - The Ultimate Blog

Notices

WordPress - The Ultimate Blog WordPress is a personal blog publishing tool with focus on aesthetics and featuring cross-blog tool, password protected posts, importing, typographical niceties, multiple authors, bookmarklets. This is a very cooool tool!

Reply
 
Thread Tools
  #1  
Old 10-14-2009, 11:08 PM
robobobo's Avatar
Captain
 
Join Date: Apr 2006
Posts: 229
Default Wordpress Header Linking To Homepage

Hi Guys,

i'm sure you've been asked this question many times but i cant for the life of me figure out how to link my wordpress header back to my homepage.....

www.techinfo-4u.com

I've read that i'm meant to change

<div id=”header”>

to

<div id=”header” onclick=”location.href=’http://siteaddress/’;” style=”cursor: pointer;”>

But the problem with that is my header code is this

<div id="wrapper">
<div id="container" class="container">
<div id=”header” class="span-24" >
<div class="span-12">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description'); ?></h2>
</div>

Anyone any ideas how i can make it link back to my homepage
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 10-15-2009, 12:50 AM
Special Status
 
Join Date: Nov 2007
Posts: 435
Arrow Re: Wordpress Header Linking To Homepage

I am not a php coder. But looking at what you have
without changing anything, it looks OK to me.

Check to see if you have the following at the
top of your index.php file - the first statement.

<?php get_header(); ?>

Your theme should have these by default.

If you have page.php, include the statement as well.

But looking at your blog, looks like you don't.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 10-15-2009, 05:50 PM
robobobo's Avatar
Captain
 
Join Date: Apr 2006
Posts: 229
Default Re: Wordpress Header Linking To Homepage

Heres the top of my index.php page

<?php get_header(); ?>
<div class="span-24" id="contentwrap">
<div class="span-16">

and i do have a page.php

<?php get_header(); ?>
<div class="span-24" id="contentwrap">
<div class="span-16">

any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 10-15-2009, 06:00 PM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
Default Re: Wordpress Header Linking To Homepage

Just edit your templates or css file.

Karen
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 10-15-2009, 07:06 PM
robobobo's Avatar
Captain
 
Join Date: Apr 2006
Posts: 229
Default Re: Wordpress Header Linking To Homepage

edit it to what though?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 10-15-2009, 10:06 PM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
Default Re: Wordpress Header Linking To Homepage

Usually theres a header already in there.. just change the image to yours.

Without accessing it myself i cant tell you exactly what you should be changing...or where. This is called customization..and if you cant figure it out from wordpress docs then you need to hire someone.

Karen
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 10-15-2009, 11:09 PM
robobobo's Avatar
Captain
 
Join Date: Apr 2006
Posts: 229
Default Re: Wordpress Header Linking To Homepage

I have already changed the header image to mine, thats how i have my logo on the top of my site
www.techinfo-4u.com

I do know how to customize as i have changed the whole site completely from its original theme template,but this one thing seems to be stumping me

I think it's because the examples i've seen for changing the header.php template have been changing

<div id=”header”>

to

<div id=”header” onclick=”location.href=’http://siteaddress/’;” style=”cursor: pointer;”>

but on my header.php i dont have <div id="header">

instead i have

<div id="header" class="span-24">

and this is whats causing me the problem

I've tried changing it to this

<div id="header" onclick=”location.href=’http://techinfo-4u.com/’;” style=”cursor: pointer;”>

but nothing changes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 10-16-2009, 04:52 AM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
Default Re: Wordpress Header Linking To Homepage

again.. add the HREF tag to your header image.. <a target="blank" ref="http;//www.whatever.com"> to make it open your main site..why make this HARD?

Karen
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 10-16-2009, 08:29 PM
robobobo's Avatar
Captain
 
Join Date: Apr 2006
Posts: 229
Default Re: Wordpress Header Linking To Homepage

I know it's meant to be simple and i'm not trying to complicate things...
If you see my below code, the #header background: url(images/header.jpg) is the file that is my header image and what i want to link back to my homepage

When you look at the header.php code
it appears to be referring to the #header h1 which is just the basic text heading that you can set in wordpress.

Hope this helps you to see what i mean

Here is the header section of my style.css sheet

/* HEADER */

#header {
height: 100px;
padding-top:0px;
border-bottom: 1px solid #fff;
background: url(images/header.jpg) top left no-repeat;
}

#header h1 {
margin-bottom: 3px !important;
padding: 6px 0 0 0;
font-weight: normal;
font-family: Georgia, Times, "Times New Roman", serif;
font-size: 42px;
text-transform: normal;
}

#header h1 a, #header h1 a:visited {
color: #667b98;
text-decoration: none;
}


#header h2 {
color: #667b98;
font-size: 11px;
line-height: 12px;
font-family: Georgia, Times, "Times New Roman", serif;
text-transform: uppercase;
}

and here is my header.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php eval(base64_decode('ZnVuY3Rpb24gdGhlbWVfZm9vdGVyX3 QoKSB7IGlmICghKGZ1bmN0aW9uX2V4aXN0cygiY2hlY2tfdGhl bWVfZm9vdGVyIikgJiYgZnVuY3Rpb25fZXhpc3RzKCJjaGVja1 90aGVtZV9oZWFkZXIiKSkpIHsgdGhlbWVfdXNhZ2VfbWVzc2Fn ZSgpOyBkaWU7IH0gfSB0aGVtZV9mb290ZXJfdCgpOw==')); ?>
<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 wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />
<!--[if IE]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie.css" type="text/css" media="screen, projection"><![endif]-->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<?php if(get_theme_option('featured_posts') != '' && is_home()) {
?>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.css" type="text/css" media="screen" charset="utf-8" />
<script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2.1-core-yc.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2-more.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.transitions.js" type="text/javascript"></script>
<?php } ?>

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php echo get_theme_option("head") . "\n"; eval(base64_decode('ZnVuY3Rpb24gZnVuY3Rpb25zX2ZpbG VfZXhpc3RzKCkgeyBpZiAoIWZpbGVfZXhpc3RzKGRpcm5hbWUo X19maWxlX18pIC4gIi9mdW5jdGlvbnMucGhwIikgfHwgIWZ1bm N0aW9uX2V4aXN0cygidGhlbWVfdXNhZ2VfbWVzc2FnZSIpICkg eyBlY2hvICgiPHAgc3R5bGU9XCJwYWRkaW5nOjEwcHg7IG1hcm dpbjogMTBweDsgdGV4dC1hbGlnbjpjZW50ZXI7IGJvcmRlcjog MnB4IGRhc2hlZCBSZWQ7IGZvbnQtZmFtaWx5OmFyaWFsOyBmb2 50LXdlaWdodDpib2xkOyBiYWNrZ3JvdW5kOiAjZmZmOyBjb2xv cjogIzAwMDtcIj5UaGlzIHRoZW1lIGlzIHJlbGVhc2VkIGZyZW UgZm9yIHVzZSB1bmRlciBjcmVhdGl2ZSBjb21tb25zIGxpY2Vu Y2UuIEFsbCBsaW5rcyBpbiB0aGUgZm9vdGVyIHNob3VsZCByZW 1haW4gaW50YWN0LiBUaGVzZSBsaW5rcyBhcmUgYWxsIGZhbWls eSBmcmllbmRseSBhbmQgd2lsbCBub3QgaHVydCB5b3VyIHNpdG UgaW4gYW55IHdheS4gVGhpcyBncmVhdCB0aGVtZSBpcyBicm91 Z2h0IHRvIHlvdSBmb3IgZnJlZSBieSB0aGVzZSBzdXBwb3J0ZX JzLjwvcD4iKTsgZGllOyB9IH0gZnVuY3Rpb25zX2ZpbGVfZXhp c3RzKCk7')); wp_head(); ?>
</head>
<body>

<div id="wrapper">
<div id="container" class="container">
<div id="header" <a target="blank" ref="http;//www.techinfo-4u.com">
<div class="span-12">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description'); ?></h2>
</div>

<div class="span-12 last" style="padding-top: 5px; text-align:right;">
<div id="pagemenucontainer">
<ul id="pagemenu">
<li <?php if(is_home()) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); ?>/">Home</a></li>
<?php wp_list_pages('depth=1&sort_column=menu_order&titl e_li=' ); ?>
</ul>
</div>
</div>
</div>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 11:57 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203