Edit File: header.php
<?php defined('ABSPATH') || exit(); // Exit directly $options = get_option('orun_opt'); // Options ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo('charset'); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="https://gmpg.org/xfn/11"> <?php wp_head(); ?> <?php echo $options['orun-opt-code-head']; ?> </head> <body <?php body_class(); ?>> <?php echo $options['orun-opt-code-body']; ?> <?php wp_body_open(); ?> <div id="page" class="site"> <a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e('Skip to content', 'orun'); ?></a> <header id="masthead" class="site-header"> <?php if (empty($options['orun-opt-header-design'])) { get_template_part('template-parts/header/header', 'top'); get_template_part('template-parts/header/header', '1'); } elseif ($options['orun-opt-header-design'] == 'header-1') { get_template_part('template-parts/header/header', 'top'); get_template_part('template-parts/header/header', '1'); } elseif ($options['orun-opt-header-design'] == 'header-2') { get_template_part('template-parts/header/header', 'top'); get_template_part('template-parts/header/header', '2'); } elseif ($options['orun-opt-header-design'] == 'header-3') { get_template_part('template-parts/header/header', 'top'); get_template_part('template-parts/header/header', '3'); } elseif ($options['orun-opt-header-design'] == 'header-4') { get_template_part('template-parts/header/header', '4'); } ?> </header><!-- #masthead --> <header class="mobile-header"> <div class="sm-screen-menu"> <div class="sm-screen-start"> <button id="nmMenu" onclick="mobileMenuFunction()" class="navbar-main-btn"> <i class="fas fa-bars"></i> </button> </div> <div class="sm-screen-logo"> <a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo bloginfo('name'); ?>"> <?php if (!empty($options['orun-opt-logo-mobile']['url'])) { echo '<img class="orun-logo" src="' . esc_url($options['orun-opt-logo-mobile']['url']) . '" alt="' . $options['orun-opt-logo-mobile']['alt'] . '" title="' . $options['orun-opt-logo-mobile']['title'] . '" width="' . $options['orun-opt-logo-mobile-dim']['width'] . '" height="' . $options['orun-opt-logo-mobile-dim']['height'] . '">'; } else { echo '<img class="orun-logo" src="' . get_template_directory_uri() . '/assets/img/logo.png" alt="' . get_bloginfo('name') . '">'; } if (!empty($options['orun-opt-logo-mobile-dark']['url'])) { echo '<img class="orun-dark-logo" src="' . esc_url($options['orun-opt-logo-mobile-dark']['url']) . '" alt="' . $options['orun-opt-logo-mobile-dark']['alt'] . '" title="' . $options['orun-opt-logo-mobile-dark']['title'] . '" width="' . $options['orun-opt-logo-mobile-dark-dim']['width'] . '" height="' . $options['orun-opt-logo-mobile-dark-dim']['height'] . '">'; } else { echo '<img class="orun-dark-logo" src="' . get_template_directory_uri() . '/assets/img/logo.png" alt="' . get_bloginfo('name') . '">'; } ?> </a> </div> <?php if ( $options['orun-opt-permanently-dark-mode'] != '1' ) { ?> <div class="sm-screen-end"> <button id="theme-button-mobile" class="navbar-main-btn change-theme fas fa-moon"></button> </div> <?php } ?> <script> document.getElementById("theme-button-mobile").addEventListener("click", function() { var button = document.getElementById("theme-button-mobile"); if (button.classList.contains("fa-moon")) { button.classList.remove("fa-moon"); button.classList.add("fa-sun"); } else { button.classList.remove("fa-sun"); button.classList.add("fa-moon"); } }); </script> </div> </header> <?php if ( !empty( $options['orun-opt-ads-header-bottom'] ) ) { ?> <div class="ads-area" style="margin-top: 20px;"> <?php echo $options['orun-opt-ads-header-bottom']; ?> </div> <?php } ?> <div id="mobileMenu" <?php if ($options['orun-opt-mobile-menu-dark'] == true) { echo 'class="mobile-dark"'; } else { } ?> style="transform: translateX(-120%)"> <div class="mobile-menu-btn"> <button id="mobilePowerBtn" onclick="mobilePower()"> <i class="fas fa-times"></i> </button> <a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo bloginfo('name'); ?>"> <?php if (!empty($options['orun-opt-logo-mobile']['url'])) { echo '<img class="orun-logo" src="' . esc_url($options['orun-opt-logo-mobile']['url']) . '" alt="' . $options['orun-opt-logo-mobile']['alt'] . '" title="' . $options['orun-opt-logo-mobile']['title'] . '" width="' . $options['orun-opt-logo-mobile-dim']['width'] . '" height="' . $options['orun-opt-logo-mobile-dim']['height'] . '">'; } else { echo '<img class="orun-logo" src="' . get_template_directory_uri() . '/assets/img/logo.png" alt="' . get_bloginfo('name') . '">'; } if (!empty($options['orun-opt-logo-mobile-dark']['url'])) { echo '<img class="orun-dark-logo" src="' . esc_url($options['orun-opt-logo-mobile-dark']['url']) . '" alt="' . $options['orun-opt-logo-mobile-dark']['alt'] . '" title="' . $options['orun-opt-logo-mobile-dark']['title'] . '" width="' . $options['orun-opt-logo-mobile-dark-dim']['width'] . '" height="' . $options['orun-opt-logo-mobile-dark-dim']['height'] . '">'; } else { echo '<img class="orun-dark-logo" src="' . get_template_directory_uri() . '/assets/img/logo.png" alt="' . get_bloginfo('name') . '">'; } ?> </a> </div> <?php if ( $options['orun-opt-mobile-menu-search'] == true ) { ?> <div class="mobile-menu-search"> <form action="<?php echo esc_url(home_url('/')); ?>" method="get"> <input class="search" type="text" size="40" name="s" id="s" placeholder="Arama yap..." value="<?php echo get_search_query(); ?>" /> <button type="submit" id="searchsubmit" value="<?php echo esc_attr('Arama Yap', 'orun'); ?>"><i class="fas fa-search"></i></button> </form> </div> <?php } ?> <div class="mobile-menu-nav"> <?php wp_nav_menu([ 'theme_location' => 'mobile-menu', 'menu_class' => 'mobil-menu-ul', 'container' => '', ]); ?> </div> <div class="mobile-menu-text"> <?php if (!empty($options['orun-opt-mobile-menu-text'])) { echo '<p>' . $options['orun-opt-mobile-menu-text'] . '</p>'; } ?> </div> </div>