SHARE
TWEET

Custom Logo

a guest Sep 12th, 2017 149 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function my_theme_enqueue_styles() {
  3.  
  4.     $parent_style = 'parent-style';
  5.  
  6.     wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
  7.     wp_enqueue_style( 'child-style',
  8.         get_stylesheet_directory_uri() . '/style.css',
  9.         array( $parent_style ),
  10.         wp_get_theme()->get('Version')
  11.     );
  12. }
  13. add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
  14.  
  15.  
  16. ?>
  17.  
  18. <?php if( function_exists( 'the_custom_logo' ) && has_custom_logo() ) : ?>
  19.             <figure class="logo-image">
  20.                 <?php flash_the_custom_logo(); ?>
  21.                 <?php if( get_theme_mod( 'flash_transparent_logo', '') != '') : ?>
  22.                 <a href="https://www.google.com/">
  23.                     <img class="transparent-logo" src="<?php echo esc_url( get_theme_mod( 'flash_transparent_logo', '' ) ); ?>" />
  24.                 </a>
  25.                 <?php endif; ?>
  26.             </figure>
  27.             <?php endif; ?>
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
 
Top