Advertisement
Guest User

Custom Logo

a guest
Sep 12th, 2017
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.94 KB | None | 0 0
  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; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement