• My sidebar HTML is so;

    <section class="first">
          <h3>Blog Navigation</h3>
          <div class="boxtwosep"></div>
          <ul class="blogList">
            <li><a class="about" href="blog.html" title="">Blog - Style One</a></li>
            <li class="activenavigationItem">Blog - Active Item</li>
            <li><a class="about" href="singleblog.html" title="">Blog - Blog Post</a></li>
          </ul>
        </section>

    I changed it like this;

    <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
    		<?php dynamic_sidebar( 'sidebar-1' ); ?>
    	<?php else : ?>
    		<!-- Create some custom HTML or call the_widget().  It's up to you. -->
    	<?php endif; ?>
      </div>

    And than I registered so;

    register_sidebar( array(
    		'name'          => __( 'Blog Sidebar', 'twentythirteen' ),
    		'id'            => 'sidebar-1',
    		'description'   => __( 'test descrtiption', 'twentythirteen' ),
    		'before_widget' => '<section>',
    		'after_widget'  => '</section>',
    		'class'         => 'blogList',
    		'before_title'  => '<h3>',
    		'after_title'   => '</h3>',
    	) );

    I cant get blogList class to work the lists and ul not working as on html.Where I am wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • When you register the sidebar are you seeing it appear in ‘Appearance > Widgets’?

    Thread Starter giuseppe23

    (@giuseppe23)

    Yes it appears all are ok only the lists for example when I add categories css class not working.
    I converted an html template into wordpress and the list of categories is not like on html.

    I can get <h3 title and widgets but not css class.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add list into sidebar’ is closed to new replies.