How to add list into sidebar
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add list into sidebar’ is closed to new replies.