SHARE
TWEET

Untitled

a guest Jun 19th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <a class="navbar-brand" href="<?php echo home_url('/')?>">
  2.             <?php $custom_logo = wp_get_attachment_image_src(get_theme_mod('custom_logo'));
  3.                 if($custom_logo): // если у нас есть логотип     ?>
  4.                     <img src="<?php echo $custom_logo[0] // путь к картинке - это наша перемен. $custom_logo[0] с нулевым элементом ?>" alt="<?php bloginfo('name')?>">
  5.                     <?php bloginfo('name') // сам текст ссылки ?>
  6.             <?php endif; ?>
  7.         </a>
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top