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
Sorry, the code like that is not so inserted
this my function.php file in the child theme
“<?php
/**
* Theme functions file
*/
/**
* Enqueue parent theme styles first
* Replaces previous method using @import
* <http://codex.wordpress.org/Child_Themes>
*/
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 }”
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.