我已經從主題'公司'(由WP資源管理器)刪除搜索功能,我刪除了Search.php Searchform.php,從CSS搜索和也從頭文件搜索,但搜索的地區現在可點擊,鏈接到主頁。刪除'搜索',現在大多數標題是可點擊區域
頁眉下方的信息:
<?php
/**
* The Header for our theme.
*
* @package WordPress
* @subpackage Corporate WPExplorer Theme
* @since Corporate 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php if (get_theme_mod('wpex_custom_favicon')) { ?>
<link rel="shortcut icon" href="<?php echo get_theme_mod('wpex_custom_favicon'); ?>" />
<?php } ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrap" class="clr container">
<div id="header-wrap" class="clr">
<header id="header" class="site-header clr" role="banner">
<?php
// Outputs the site logo
// See functions/logo.php
wpex_logo(); ?>
<!-- Search removed from here -->
</header><!-- #header -->
</div><!-- #header-wrap -->
<div id="sidr-close"><a href="#sidr-close" class="toggle-sidr-close"></a></div>
<div id="site-navigation-wrap">
<a href="#sidr-main" id="navigation-toggle"><span class="fa fa-bars"></span><?php echo __('Menu', 'wpex'); ?></a>
<nav id="site-navigation" class="navigation main-navigation clr" role="navigation">
<?php
// Display main menu
wp_nav_menu(array(
'theme_location' => 'main_menu',
'sort_column' => 'menu_order',
'menu_class' => 'dropdown-menu sf-menu',
'fallback_cb' => false
)); ?>
</nav><!-- #site-navigation -->
</div><!-- #site-navigation-wrap -->
<div id="main" class="site-main clr">
無法看到任何打開標籤因此,也許你有一些js附加到'id =「header」' – 2014-08-30 11:00:58
這裏是導航區... <! - #site-navigation - > – 2014-08-30 11:04:04
它正常在任何WordPress主題,從function.php調用像在twentytweleve – 2014-08-30 11:04:56