How do i add a link in footer using php?

by 3 replies
4
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 -->
#programming #add #footer #link #php
  • No php needed - just plain-vanilla html:
    Code:
    <a href="gotohere.com" title="hover text">anchor text</a>
    • [1] reply
    • 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!!
  • Banned
    [DELETED]
  • You should drop the php code, the link is raw HTML. You're using php to render html, instead of just writing html.

Next Topics on Trending Feed

  • 4

    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 -->