How do i add a link in footer using php?

by ErnieB
3 replies
I want to replace the "xxxxx" in the code below with proper php code that will allow me to place a link with anchor text in the footer of my wordpress template. Anyone care to share the code needed to do that?

Code:
<!-- Copyright Starts -->
	<div id="copyright-out">
	<div id="copyright" class="wrap">
		<div class="col-left">
			<p>&copy; <?php the_time('Y'); ?> <?php bloginfo(); ?>. <?php _e('All Rights Reserved.'); ?></p>
		</div>
		<div class="col-right">
			<p>xxxxxxx</p>
		
		</div>
	</div>
	</div>
	<!-- Copyright Ends -->
#add #footer #link #php
  • Profile picture of the author SteveJohnson
    No php needed - just plain-vanilla html:
    Code:
    <a href="gotohere.com" title="hover text">anchor text</a>
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[2182642].message }}
    • Profile picture of the author ErnieB
      Originally Posted by SteveJohnson View Post

      No php needed - just plain-vanilla html:
      Code:
      <a href="gotohere.com" title="hover text">anchor text</a>
      Hmm, for some reason it isnt working, neithe ris php code someone else gave me..
      Code:
      <?php echo '<p><a href="http://www.yoursite.com">Click here</a></p>'; ?>
      Edit: Got it to work... THANKS!!
      {{ DiscussionBoard.errors[2182665].message }}
  • Profile picture of the author LP_User
    You should drop the php code, the link is raw HTML. You're using php to render html, instead of just writing html.
    {{ DiscussionBoard.errors[2203146].message }}

Trending Topics