Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/twentytw...
File: header.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Header file for the Twenty Twenty WordPress default theme.
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Twenty_Twenty
[7] Fix | Delete
* @since Twenty Twenty 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
?><!DOCTYPE html>
[11] Fix | Delete
[12] Fix | Delete
<html class="no-js" <?php language_attributes(); ?>>
[13] Fix | Delete
[14] Fix | Delete
<head>
[15] Fix | Delete
[16] Fix | Delete
<meta charset="<?php bloginfo( 'charset' ); ?>">
[17] Fix | Delete
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
[18] Fix | Delete
[19] Fix | Delete
<link rel="profile" href="https://gmpg.org/xfn/11">
[20] Fix | Delete
[21] Fix | Delete
<?php wp_head(); ?>
[22] Fix | Delete
[23] Fix | Delete
</head>
[24] Fix | Delete
[25] Fix | Delete
<body <?php body_class(); ?>>
[26] Fix | Delete
[27] Fix | Delete
<?php
[28] Fix | Delete
wp_body_open();
[29] Fix | Delete
?>
[30] Fix | Delete
[31] Fix | Delete
<header id="site-header" class="header-footer-group" role="banner">
[32] Fix | Delete
[33] Fix | Delete
<div class="header-inner section-inner">
[34] Fix | Delete
[35] Fix | Delete
<div class="header-titles-wrapper">
[36] Fix | Delete
[37] Fix | Delete
<?php
[38] Fix | Delete
[39] Fix | Delete
// Check whether the header search is activated in the customizer.
[40] Fix | Delete
$enable_header_search = get_theme_mod( 'enable_header_search', true );
[41] Fix | Delete
[42] Fix | Delete
if ( true === $enable_header_search ) {
[43] Fix | Delete
[44] Fix | Delete
?>
[45] Fix | Delete
[46] Fix | Delete
<button class="toggle search-toggle mobile-search-toggle" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field" aria-expanded="false">
[47] Fix | Delete
<span class="toggle-inner">
[48] Fix | Delete
<span class="toggle-icon">
[49] Fix | Delete
<?php twentytwenty_the_theme_svg( 'search' ); ?>
[50] Fix | Delete
</span>
[51] Fix | Delete
<span class="toggle-text"><?php _ex( 'Search', 'toggle text', 'twentytwenty' ); ?></span>
[52] Fix | Delete
</span>
[53] Fix | Delete
</button><!-- .search-toggle -->
[54] Fix | Delete
[55] Fix | Delete
<?php } ?>
[56] Fix | Delete
[57] Fix | Delete
<div class="header-titles">
[58] Fix | Delete
[59] Fix | Delete
<?php
[60] Fix | Delete
// Site title or logo.
[61] Fix | Delete
twentytwenty_site_logo();
[62] Fix | Delete
[63] Fix | Delete
// Site description.
[64] Fix | Delete
twentytwenty_site_description();
[65] Fix | Delete
?>
[66] Fix | Delete
[67] Fix | Delete
</div><!-- .header-titles -->
[68] Fix | Delete
[69] Fix | Delete
<button class="toggle nav-toggle mobile-nav-toggle" data-toggle-target=".menu-modal" data-toggle-body-class="showing-menu-modal" aria-expanded="false" data-set-focus=".close-nav-toggle">
[70] Fix | Delete
<span class="toggle-inner">
[71] Fix | Delete
<span class="toggle-icon">
[72] Fix | Delete
<?php twentytwenty_the_theme_svg( 'ellipsis' ); ?>
[73] Fix | Delete
</span>
[74] Fix | Delete
<span class="toggle-text"><?php _e( 'Menu', 'twentytwenty' ); ?></span>
[75] Fix | Delete
</span>
[76] Fix | Delete
</button><!-- .nav-toggle -->
[77] Fix | Delete
[78] Fix | Delete
</div><!-- .header-titles-wrapper -->
[79] Fix | Delete
[80] Fix | Delete
<div class="header-navigation-wrapper">
[81] Fix | Delete
[82] Fix | Delete
<?php
[83] Fix | Delete
if ( has_nav_menu( 'primary' ) || ! has_nav_menu( 'expanded' ) ) {
[84] Fix | Delete
?>
[85] Fix | Delete
[86] Fix | Delete
<nav class="primary-menu-wrapper" aria-label="<?php echo esc_attr_x( 'Horizontal', 'menu', 'twentytwenty' ); ?>" role="navigation">
[87] Fix | Delete
[88] Fix | Delete
<ul class="primary-menu reset-list-style">
[89] Fix | Delete
[90] Fix | Delete
<?php
[91] Fix | Delete
if ( has_nav_menu( 'primary' ) ) {
[92] Fix | Delete
[93] Fix | Delete
wp_nav_menu(
[94] Fix | Delete
array(
[95] Fix | Delete
'container' => '',
[96] Fix | Delete
'items_wrap' => '%3$s',
[97] Fix | Delete
'theme_location' => 'primary',
[98] Fix | Delete
)
[99] Fix | Delete
);
[100] Fix | Delete
[101] Fix | Delete
} elseif ( ! has_nav_menu( 'expanded' ) ) {
[102] Fix | Delete
[103] Fix | Delete
wp_list_pages(
[104] Fix | Delete
array(
[105] Fix | Delete
'match_menu_classes' => true,
[106] Fix | Delete
'show_sub_menu_icons' => true,
[107] Fix | Delete
'title_li' => false,
[108] Fix | Delete
'walker' => new TwentyTwenty_Walker_Page(),
[109] Fix | Delete
)
[110] Fix | Delete
);
[111] Fix | Delete
[112] Fix | Delete
}
[113] Fix | Delete
?>
[114] Fix | Delete
[115] Fix | Delete
</ul>
[116] Fix | Delete
[117] Fix | Delete
</nav><!-- .primary-menu-wrapper -->
[118] Fix | Delete
[119] Fix | Delete
<?php
[120] Fix | Delete
}
[121] Fix | Delete
[122] Fix | Delete
if ( true === $enable_header_search || has_nav_menu( 'expanded' ) ) {
[123] Fix | Delete
?>
[124] Fix | Delete
[125] Fix | Delete
<div class="header-toggles hide-no-js">
[126] Fix | Delete
[127] Fix | Delete
<?php
[128] Fix | Delete
if ( has_nav_menu( 'expanded' ) ) {
[129] Fix | Delete
?>
[130] Fix | Delete
[131] Fix | Delete
<div class="toggle-wrapper nav-toggle-wrapper has-expanded-menu">
[132] Fix | Delete
[133] Fix | Delete
<button class="toggle nav-toggle desktop-nav-toggle" data-toggle-target=".menu-modal" data-toggle-body-class="showing-menu-modal" aria-expanded="false" data-set-focus=".close-nav-toggle">
[134] Fix | Delete
<span class="toggle-inner">
[135] Fix | Delete
<span class="toggle-text"><?php _e( 'Menu', 'twentytwenty' ); ?></span>
[136] Fix | Delete
<span class="toggle-icon">
[137] Fix | Delete
<?php twentytwenty_the_theme_svg( 'ellipsis' ); ?>
[138] Fix | Delete
</span>
[139] Fix | Delete
</span>
[140] Fix | Delete
</button><!-- .nav-toggle -->
[141] Fix | Delete
[142] Fix | Delete
</div><!-- .nav-toggle-wrapper -->
[143] Fix | Delete
[144] Fix | Delete
<?php
[145] Fix | Delete
}
[146] Fix | Delete
[147] Fix | Delete
if ( true === $enable_header_search ) {
[148] Fix | Delete
?>
[149] Fix | Delete
[150] Fix | Delete
<div class="toggle-wrapper search-toggle-wrapper">
[151] Fix | Delete
[152] Fix | Delete
<button class="toggle search-toggle desktop-search-toggle" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field" aria-expanded="false">
[153] Fix | Delete
<span class="toggle-inner">
[154] Fix | Delete
<?php twentytwenty_the_theme_svg( 'search' ); ?>
[155] Fix | Delete
<span class="toggle-text"><?php _ex( 'Search', 'toggle text', 'twentytwenty' ); ?></span>
[156] Fix | Delete
</span>
[157] Fix | Delete
</button><!-- .search-toggle -->
[158] Fix | Delete
[159] Fix | Delete
</div>
[160] Fix | Delete
[161] Fix | Delete
<?php
[162] Fix | Delete
}
[163] Fix | Delete
?>
[164] Fix | Delete
[165] Fix | Delete
</div><!-- .header-toggles -->
[166] Fix | Delete
<?php
[167] Fix | Delete
}
[168] Fix | Delete
?>
[169] Fix | Delete
[170] Fix | Delete
</div><!-- .header-navigation-wrapper -->
[171] Fix | Delete
[172] Fix | Delete
</div><!-- .header-inner -->
[173] Fix | Delete
[174] Fix | Delete
<?php
[175] Fix | Delete
// Output the search modal (if it is activated in the customizer).
[176] Fix | Delete
if ( true === $enable_header_search ) {
[177] Fix | Delete
get_template_part( 'template-parts/modal-search' );
[178] Fix | Delete
}
[179] Fix | Delete
?>
[180] Fix | Delete
[181] Fix | Delete
</header><!-- #site-header -->
[182] Fix | Delete
[183] Fix | Delete
<?php
[184] Fix | Delete
// Output the menu modal.
[185] Fix | Delete
get_template_part( 'template-parts/modal-menu' );
[186] Fix | Delete
[187] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function