daily pastebin goal

WP shortcode for a header logo to go into the functions.php

cdgwebdesign May 24th, 2012 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //logo in header
  2. add_shortcode('headercontent','getlogo');
  3. function getlogo() {
  4.         echo '<div class="headerlogo"><a href="'.get_bloginfo('home').'"><img src="'.get_bloginfo('stylesheet_directory').'/images/company-logo.png" alt="web design" /></a>';
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand