Помогите разобраться с h1 заголовком. Он у меня автоматическт прописывается на всех страницах сайта. В итоге получается 2 записи с h1 на одной странице, а как я понял для оптимизации это не очень хорошо. тема Theron Lite https://wordpress.org/themes/theron-lite .
код header.rhp
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <meta name="google-site-verification" content="cIJh526IRlJgfsYZcxR1JPstgsH4DZYsM5hqhRh8MyY" /> <meta name='yandex-verification' content='4accc49bf5370b19' /> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) { single_cat_title(); echo ' - '; bloginfo('name'); } elseif (is_single() ) { single_post_title(); } elseif (is_page() ) { bloginfo('name'); echo ': '; single_post_title(); } else { wp_title('',true); } ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" /> <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" > <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <!--HEADER START--> <div class="headcenter"> <div id="header"> <!--LOGO START--> <div class="logo"> <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo('name') ;?></a></h1> <div class="desc"><?php bloginfo('description')?></div> </div> <!--LOGO END--> <!--MENU STARTS--> <div id="menu_wrap"><div class="center"><div id="topmenu"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?></div></div></div> <!--MENU END--> </div> </div> <?php if ( is_singular()) {?><div class="center"><div class="slide_shadow"></div></div><?php } ?> <!--HEADER END--> <div class="center">
менял в лого( правильно?) тег h1 на p., в итоге заголовок криво, а проблема не решилась
вот еще стили( в них тоже h1 заменял)
/* body{ padding:0px; margin:0px; font-family:Arial, Helvetica, sans-serif; color:#000000; font-size:13px;} .center{ width:1000px; margin: 0 auto;} a{ text-decoration:none; color:#000000 ;} p{ line-height:19px;} /*Header*/ .logged-in #header{ margin-top:0px;} #header{ background:#302f2f url(images/pattern.png) repeat; width:100%; float:left; position:relative; margin-top:10px;} .headcenter{ width:1000px; margin:0 auto;} /*LOGO*/ .logo {float: left;padding-bottom: 20px; width:100%;} .logo h1 { margin-bottom:0px; } .logo h1 a{ display:block;text-align:center; color: #fff; text-decoration:none;outline: none;} .desc{ text-align:center; color:#fff; font-size:15px;} .outer-center {float: right;right: 50%;position: relative;} .inner-center {float: right;right: -50%;position: relative;} .logo img{ margin-top:15px; margin-bottom:15px; border:none;} /*MENU*/ #menu_wrap{width:100%; float:left; background:#302f2f url(images/menu_wrap.png) repeat;} .is-sticky{ width:1000px!important;} #topmenu{text-align:center;} .menu-header{margin:auto; padding:0; display:block;} #topmenu ul{ margin:0; padding:0;} #topmenu ul li{list-style-type:none; display:inline-block; position:relative; margin-top:0px;padding:25px 15px;} #topmenu li a{ font-size:18px; color:#fff;} #topmenu ul > li:hover{ background:url(images/transblack.png) repeat;} #menu-icon{display:none;} всю голову сломал уже