Отредактировать шаблон
-
Всем доброго дня
Задача состоит в том что бы убрать в шапке название сайта тег h1
и в названиях новых обзоров поменять тег с h2 на h1
исходный код страницы
<div id="wrapper" class="container-fluid"> <header id="cc-header" class="row-fluid"> <div class="span7"> <hgroup> <h1 class="site-title"><a href="http://сайт.com/" title="мой сайт" rel="home">Мой сайт</a></h1> </hgroup> </div>
и в самой статье
Переделать под H1 и убрать ссылку
<header class="entry-header"> <h2 class="entry-title"> <a href="http://сайт.html" title="Permalink to Название" rel="bookmark">мое название обзора</a> </h2>
В самом файле хедер шаблона
global $options, $themeslug; // call globals ?> <?php response_head_tag(); ?> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <!-- wp_enqueue_script( 'comment-reply' );--> <?php wp_head(); ?> <!-- wp_head();--> </head><!-- closing head tag--> <!--Begin response_after_head_tag hook--> <?php response_after_head_tag(); ?> <!--End response_after_head_tag hook--> <!--Begin response_before_header hook--> <?php response_before_header(); ?> <!--End response_before_header hook--> <header> <?php foreach(explode(",", $options->get('header_section_order')) as $fn) { if(function_exists($fn)) { call_user_func_array($fn, array()); } } ?> </header> <!--Begin response_after_header--> <?php response_after_header(); ?> <!--End response after_header hook-->
- Тема «Отредактировать шаблон» закрыта для новых ответов.