here,
HTML Code:<ul> <?php wp_list_pages('title_li='); ?> <li><a href="http://www.affiliates4u.com/forums/website-promotion/afflink">Affllink Title</a></li> </ul>
I have a wordpress theme which I would like to add an affiliate link into the header.
Techincally computery stuff gives me a headache, so I dont know how. :cry
Can someone show me what code and where to put the code into the php header file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<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'); ?>" />
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/tabber.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/prototype.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/effects.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/glider.js"></script>
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagNam e("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("topnav").getElementsByTag Name("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
<script type="text/javascript">
function display(id) {
if (document.getElementById(id).style.display == 'block') {
document.getElementById(id).style.display = 'none';
} else {
document.getElementById(id).style.display = 'block';
}
return false;
}
</script>
<script type="text/javascript">
function display(id) {
if (document.getElementById(id).style.display == 'block') {
document.getElementById(id).style.display = 'none';
} else {
document.getElementById(id).style.display = 'block';
}
return false;
}
</script>
<?php wp_head(); ?>
</head>
<body>
<div id="wrap" class="clearfix">
<div id="header" class="clearfix">
<div class="sitehead-left" onclick="location.href='<?php bloginfo('url'); ?>';" style="cursor: pointer;">
<h1><?php bloginfo('name'); ?></h1>
<p><?php bloginfo('description'); ?></p>
</div>
<div class="sitehead-right">
<p>Today is <?php echo date('l, F dS, Y'); ?></p>
<div id="topnav">
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
</div>
</div>
</div>
<div id="nav" class="clearfix">
<ul class="clearfix">
<?php wp_list_categories('hierarchical=1&title_li='); ?>
</ul>
</div>
here,
HTML Code:<ul> <?php wp_list_pages('title_li='); ?> <li><a href="http://www.affiliates4u.com/forums/website-promotion/afflink">Affllink Title</a></li> </ul>
Excellent Christoper B, it works a treat. Thank you![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks