HEX
Server: LiteSpeed
System: Linux server019.our-control-panel.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: aashishs (1103)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/aashishs/manishjhanepal.com.np/wp-content/themes/newseblog/header.php
<?php

/**
 * The header for our theme.
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @package NewseBlog
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

?>
<!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="http://gmpg.org/xfn/11">
  <?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
  <?php wp_body_open(); ?>
  <div id="page" class="site">
    <a class="skip-link screen-reader-text" href="#content">
      <?php _e('Skip to content', 'newseblog'); ?></a>
    <div class="wrapper">
      <header class="newseblog-header">
        <div class="newseblogader-logo">
          <?php the_custom_logo();
          $header_text = get_theme_mod('header_text', 'true');
          if ($header_text == true) { ?>
            <div class="newseblog-site-branding">
              <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php echo esc_html(get_bloginfo('name')); ?></a></h1>
              <p class="site-description"><?php echo esc_html(get_bloginfo('description')); ?></p>
            </div>
          <?php } ?>
        </div>
        <div class="newseblog-header-menu">
          <nav id="main-nav" class="main_nav">
           <?php 
              if ( has_nav_menu('primary') ) {
                wp_nav_menu(array(
                'theme_location'  => 'primary',
                'menu_class'     => 'newseblog-menu',          
              )); 
            } ?>
          </nav>
        </div>
      </header>
      <div class="clearfix"></div>