Advertisement
cdgwebdesign

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

May 24th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement