Take the 2-minute tour ×

I'm building site (dummy site is up at www.teamcoding.ca/corporate) and would like to include in the upper-right hand part of the screen, "Switch to Lifestyle Site" with a link to a different site.

My impression is that to do this I need to edit one of my .php files.

I tried to edit page.php, full-width-page.php (the template I'm using), but did not see any results. I also tried editing header.php but did not see any results.

Any help would be greatly appreciated.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

You should provide your code when asking this type of question. Here is an example of a header.php file. Look at the code and see how it's done:

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
    global $page, $paged;
    bloginfo( 'name' );
    echo " | $site_description";
<?php wp_head(); ?>
<body <?php body_class(); ?>>

  <a href="http://lifestyle-site.com/">Switch to Lifestyle Site</a>    

            <h1 class="site-title">

<div id="main">

The part that adds the link is:


You can also wrap it in a div tag for more css control:

  <div id="custom-link">
share|improve this answer
Thanks for the help. You were exactly right. And for future reference, I'll be sure to post my code in questions like this. –  mcranston18 May 30 '12 at 13:06
add comment

You should put that link on your header.php. At default condition of a theme, header.php should called on every page template.

share|improve this answer
add comment

Your Answer


