Code snippet placement Divi Theme
-
I don’t know where to place the easy logo code snippet within the Divi theme header.php
Obviously I am not a develeper. I have the original code backed up.This is the logo section of the header.php. can you show me where to paste the snippet?
<header id=”main-header” data-height-onload=”<?php echo esc_attr( et_get_option( ‘menu_height’, ’66’ ) ); ?>”>
<div class=”container clearfix et_menu_container”>
<?php
$logo = ( $user_logo = et_get_option( ‘divi_logo’ ) ) && ” != $user_logo
? $user_logo
: $template_directory_uri . ‘/images/logo.png’;
?>
<div class=”logo_container”>
<span class=”logo_helper”></span>
“>
” alt=”<?php echo esc_attr( get_bloginfo( ‘name’ ) ); ?>” id=”logo” data-height-percentage=”<?php echo esc_attr( et_get_option( ‘logo_height’, ’54’ ) ); ?>” />
The page I need help with: [log in to see the link]
The topic ‘Code snippet placement Divi Theme’ is closed to new replies.