Bloginfo url and description in WordPress site header


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <div id="header">
  2. <h1>
  3. <a href="<?php bloginfo('url'); ?>">
  4. <?php bloginfo('name'); ?>
  5. </a>
  6. </h1>
  7. <h2><?php bloginfo('description'); ?></h2>
  8. </div>
  9.  
  10. <-- which replaces -->
  11.  
  12.  
  13. <div id="header">
  14. <h1>
  15. <a href="http://www.yoursite.com">
  16. Your Site Name
  17. </a>
  18. </h1>
  19. <h2>Your Site's tagline</h2>
  20. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.