Wordpress index.php giving error with sidebar

0

I'm doing a template from scratch with the basic knowledge I have in html and css, however I'm having some against times like this: https: // overlove.000webhostapp. com / blog

I've reviewed everything and all forms and can not find the error in any way. The functions.php file is normal and the index.php is also ... If someone knows how to answer me, I appreciate it.

index.php         

<div class="container">
<?php if(have_posts()): ?>
<?php  while(have_posts()):the_post(); ?>

       <div class="sidebar"> 
            <?php dynamic_sidebar('sidebar01') ?>
       </div>
    <div class="content">
        <h2>
            <a href="<?php the_permalink(); ?>" id="title" ><?php the_title(); ?></a>
        </h2>

        <div class="thumbnail">
            <?php the_post_thumbnail(array('911, 120')); ?>
        </div>
        <br/><br/><br/><br/><br/><br/>
        <div class="description"><?php the_excerpt(); ?></div><br/>

        <div class="readmore">
            <a href="<?php the_permalink(); ?>" >Continuar Lendo</a>
        </div>
        <div class="author_public">
            <publiclado>Publicado</publiclado> em <?php the_date("j/m/Y"); ?> <publiclado>Por:</publiclado> <?php the_author(); ?>
        </div>
    </div>
    <br/>
<?php
    endwhile;
    else:
?>
<div class="no-post" >Nenhum post encontrado!</div>
<?php
    endif;
?>

<?php get_footer(); ?>

Functions.php

<?php
    register_sidebar(array(
        'name'=>'sidebar01',
        'id' => 'sidebar-1',
        'before_widget' => '<li class="widget">',
        'after_widget' => '</li>',
        'before_title' => '<h3 class="widgettitle">',
        'after_title' => '</h4>',
    ));

    register_sidebar(array(
        'name'=>'sidebaranimes',
        'id' => 'sidebar-2',
        'before_widget' => '<li class="widget">',
        'after_widget' => '</li>',
        'before_title' => '<h3 class="widgettitle">',
        'after_title' => '</h4>',
    ));

    register_sidebar(array(
        'name'=>'sidebaranimes2',
        'id' => 'sidebar-3',
        'before_widget' => '<li class="widget">',
        'after_widget' => '</li>',
        'before_title' => '<h3 class="widgettitle">',
        'after_title' => '</h4>',
    ));

    add_theme_support( 'post-thumbnails', array( 'post' ) ); 
    set_post_thumbnail_size( 911, 120, true );

?>
    
asked by anonymous 10.09.2018 / 18:49

1 answer

0

Where is:

    'before_title' => '<h3 class="widgettitle">',
    'after_title' => '</h4>',

Should be:

    'before_title' => '<h3 class="widgettitle">',
    'after_title' => '</h3>'

That is, you are closing the wrong title tag and include a comma in the last element, when it should not have.

    
10.09.2018 / 19:41