SHARE
TWEET

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

cdgwebdesign May 24th, 2012 40 Never
  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
Top