Results 1 to 3 of 3

 

Thread: Help with adding link to wordpress header

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    129
    Thanks
    1
    Thanked 1 Time in 1 Post


    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>

  2. #2
    Registered User

    Status
    Offline
    Join Date
    Jun 2007
    Posts
    224
    Thanks
    12
    Thanked 3 Times in 2 Posts
    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>

  3. #3
    Registered User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    129
    Thanks
    1
    Thanked 1 Time in 1 Post
    Excellent Christoper B, it works a treat. Thank you



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How not to ask a high PR site for a link!
    By pericom in forum Affiliate Marketing Lounge
    Replies: 15
    Last Post: 06-01-10, 11:40 AM
  2. Replies: 1
    Last Post: 06-05-08, 07:47 PM
  3. Earn Commissions On Wiis With The Link
    By James@AW in forum Affiliate Window & buy.at
    Replies: 0
    Last Post: 01-02-08, 01:46 PM
  4. Affiliate Commerce System And Method
    By marketraise int in forum Affiliate Marketing Lounge
    Replies: 11
    Last Post: 07-03-07, 01:50 PM
  5. Link Exchange -- Link Market
    By affiliateonline in forum Media Coverage & PR Strategy
    Replies: 8
    Last Post: 20-02-07, 09:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2