Home Forums Jevelin Theme Change default URL logo in header Reply To: Change default URL logo in header

Home Forums Jevelin Theme Change default URL logo in header Reply To: Change default URL logo in header

<?php
/**
* Theme functions file
*/

/**
* Enqueue parent theme styles first
* Replaces previous method using @import
* <http://codex.wordpress.org/Child_Themes&gt;
*/

add_action( ‘wp_enqueue_scripts’, ‘jevelin_child_enqueue’, 99 );

function jevelin_child_enqueue() {
wp_enqueue_style( ‘jevelin-child-style’, get_stylesheet_directory_uri() . ‘/style.css’ );
wp_enqueue_script( ‘jevelin-child-scripts’, get_stylesheet_directory_uri() . ‘/js/scripts.js’ );
}

/**
* Add your custom functions below
*/
function jevelin_header_logo() {

$standard_logo = jevelin_option_image(‘logo’);

/* Use Jevelin Logo if Logo is not uploaded */
if( !$standard_logo ) :
$standard_logo = get_template_directory_uri().’/img/logo.png’;
endif;

$sticky_logo = ( jevelin_option_image(‘logo_sticky’) ) ? jevelin_option_image(‘logo_sticky’) : $standard_logo;
$light_logo = ( jevelin_option_image(‘logo_light’) ) ? jevelin_option_image(‘logo_light’) : $standard_logo;

if( jevelin_logo_height() && jevelin_logo_height() != ‘auto’ ) :
$height = ‘ height=”‘.str_replace(“px”, “”, jevelin_logo_height() ).'”‘;
else :
$height = ”;
endif;
?>
<div class=”header-logo”>
” class=”header-logo-container sh-table-small”>
<div class=”sh-table-cell”>

” alt=”<?php echo esc_attr( get_bloginfo( ‘name’ ) ); ?>”<?php echo esc_attr( $height ); ?> />
” alt=”<?php echo get_bloginfo( ‘name’ ); ?>”<?php echo esc_attr( $height ); ?> />
” alt=”<?php echo get_bloginfo( ‘name’ ); ?>”<?php echo esc_attr( $height ); ?> />

</div>

</div>

<?php }