Mail.ruПочтаМой МирОдноклассникиВКонтактеИгрыЗнакомстваНовостиКалендарьОблакоЗаметкиВсе проекты

Помогите вставить бегущую строку в шапку сайта на вордпресс

Максим Ружников Знаток (419), закрыт 5 лет назад
Куда только я не вставлял html код бегущей строки в файле header.php, но всё бесполезно....
Подскажите что я не так делаю, вот сам файл header.php
<?php
/**
* The Header for Customizr.
*
* Displays all of the section and everything up till
*
* @package Customizr
* @since Customizr 1.0
*/
if ( apply_filters( 'czr_ms', false ) ) {
//in core init => add_action( 'czr_ms_tmpl', array( $this , 'czr_fn_load_modern_template_with_no_model' ), 10, 1 );
//function czr_fn_load_modern_template_with_no_model( $template = null ) {
// $template = $template ? $template : 'index';
// $this -> czr_fn_require_once( CZR_MAIN_TEMPLATES_PATH . $template . '.php' );
// }
do_action( 'czr_ms_tmpl', 'header' );
return;
}
?>




<html class="no-js" <?php language_attributes(); ?>>

<?php
//the '__before_body' hook is used by CZR_header_main::$instance->czr_fn_head_display()
do_action( '__before_body' );
?>
<body <?php body_class(); ?> <?php echo apply_filters('tc_body_attributes' , '') ?>>

<?php do_action( '__before_page_wrapper' );?>

<div id="tc-page-wrap" class="<?php echo implode( " ", apply_filters('tc_page_wrap_class', array() ) ) ?>">

<?php do_action( '__before_header' ); ?>
echo do_shortcode( '[hsas-shortcode group="" speed="10" direction="left" gap="50"]' );
<header class="<?php echo implode( " ", apply_filters('tc_header_classes', array('tc-header' ,'clearfix', 'row-fluid') ) ) ?>" role="banner">
<?php
// The '__header' hook is used with the following callback functions (ordered by priorities) :
//CZR_header_main::$instance->tc_logo_title_display(), CZR_header_main::$instance->czr_fn_tagline_display(), CZR_header_main::$instance->czr_fn_navbar_display()
do_action( '__header' );
?>

<?php
//This hook is used for the slider : CZR_slider::$instance->czr_fn_slider_display()
do_action ( '__after_header' )
?>
Лучший ответ
Просветленный (35461) 6 лет назад
html код покажи (в браузере - показать исходный код, ту часть где шапка
или ссылку на сайт дай, чтобы посмотреть
Максим РужниковЗнаток (419) 6 лет назад
Просветленный (35461) попробуй перед строкой (будет вверху шапки) <?php do_action( '__before_header' ); ?> после строк (будет снизу шапки do_action( '__header' ); ?> или вообще самой последней строкой, после кода
Остальные ответы
WPMaster Мастер (1889) 6 лет назад
Вставляй после <html class="no-js" <?php language_attributes(); ?>>
Похожие вопросы