The fact is that now the site is on the same engine, with the same template, and everything works fine, errors do not come out, the design does not leave) I take the template, put the null engine on the Denver, run the template I’ve made, leaves the news block is sharply to the left, the sidebars stand still, if you remove the functions.php file, then the sidebars disappear and the news column falls into place))

 eader information - headers already sent by (output started at W:\home\1.ru\www\wp-content\themes\dwar\functions.php:1) in W:\home\1.ru\www\wp-includes\option.php on line 820 

I swear as I understood to register widgets, but why ...) what is wrong here, if everything works without errors on the same version of the engine and nothing goes anywhere .. here is the functions.php file

 <?php // Регистрируем сайдбары if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'left-1', 'before_widget' => '<div class="sb-bot"><div class="sb-top"> <div class="sb-right"><div class="sb-left"><div class="sb-rb"><div class="sb-lb"><div class="sb-rt"><div class="sb-lt">', 'before_title' => '<h2>', 'after_title' => '</h2><div class="textwidget">', 'after_widget' => '</div></div></div></div></div></div></div></div></div>' )); } if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'left-2', 'before_widget' => '<div class="sb-bot"><div class="sb-top"> <div class="sb-right"><div class="sb-left"><div class="sb-rb"><div class="sb-lb"><div class="sb-rt"><div class="sb-lt">', 'before_title' => '<h2>', 'after_title' => '</h2><div class="textwidget">', 'after_widget' => '</div></div></div></div></div></div></div></div></div>' )); } if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'left-3', 'before_widget' => '<div class="sb-bot"><div class="sb-top"> <div class="sb-right"><div class="sb-left"><div class="sb-rb"><div class="sb-lb"><div class="sb-rt"><div class="sb-lt">', 'before_title' => '<h2>', 'after_title' => '</h2><div class="textwidget">', 'after_widget' => '</div></div></div></div></div></div></div></div></div>' )); } ?> 

It is very interesting why the same code in the div blocks on the original normally shows)) and the copied image went off ...

    1 answer 1

    Remove spaces in the beginning of the file or the encoding is not utf8 without bom

    • Thanks, the coder saved) just didn’t seem to change anything, didn’t do anything, just merged with ftp and is no longer working) - Konstantin