Please help me with this Header Code
-
I tried to reply to the original post, but it didn’t get bumped, so no one could see it. I was hoping Dgold would see this since he was helping me a lot. anyhow, here is goes:
I was able to modify my header. I changed the name of the links also at the top of the header. Now, I’m trying to point the links to the right area. Here is my blog:
https://www.swankpets.com/blog/
So for example, I just wanted to have ‘SHOP NOW AT SWANKPETS’ go to my homepage, https://www.swankpets.com
I tried this code:
# shop now at swankpetsBut now it points to: https://www.swankpets.com/blog/www.swankpets.com
So you can see that everything I place a link to will have this in front of it: https://www.swankpets.com/blog/whatever…
Could you help in seeing where I can change the code so my links will appear correctly, without the prefix https://www.swankpets.com/blog whenever I need to.
HERE IS THE ORIGINAL ENTIRE HEADER.PHP 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(‘name’); echo(‘ — ‘); bloginfo(‘description’); } ?></title>
<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
<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” media=”screen” />
<![endif]–>
<!–[if lte IE 6]>
<link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_url’); ?>/ie6.css” media=”screen” />
<![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=”masthead”>
<h1>”><?php bloginfo(‘name’); ?></h1>
<h3><?php bloginfo(‘description’); ?></h3>
</div><ul id=”nav”>
# href=”<?php bloginfo(‘url’); ?>”>front page
# href=”<?php bloginfo(‘url’); ?>/archives/”>archives
# shop now at swankpets<li class=”rss”>”>RSS
<div id=”header_img”>
<?php if (is_home()) { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/images/header_1.jpg” width=”970″ height=”140″ alt=”<?php bloginfo(‘name’); ?> header image 1″ title=”<?php bloginfo(‘name’); ?> header image 1″ />
<?php } elseif (is_single()) { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/images/header_2.jpg” width=”970″ height=”140″ alt=”<?php bloginfo(‘name’); ?> header image 2″ title=”<?php bloginfo(‘name’); ?> header image 2″ />
<?php } elseif (is_page()) { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/images/header_3.jpg” width=”970″ height=”140″ alt=”<?php bloginfo(‘name’); ?> header image 3″ title=”<?php bloginfo(‘name’); ?> header image 3″ />
<?php } elseif (is_archive()) { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/images/header_4.jpg” width=”970″ height=”140″ alt=”<?php bloginfo(‘name’); ?> header image 4″ title=”<?php bloginfo(‘name’); ?> header image 4″ />
<?php } else { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/images/header_5.jpg” width=”970″ height=”140″ alt=”<?php bloginfo(‘name’); ?> header image 5″ title=”<?php bloginfo(‘name’); ?> header image 5″ />
<?php } ?>
</div>
- The topic ‘Please help me with this Header Code’ is closed to new replies.