This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

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

By: cdgwebdesign on May 24th, 2012  |  syntax: PHP  |  size: 0.25 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data