How can I remove the side bar from my frontpage

QuestionsCategory: Free WordPress Theme ClubTravelHow can I remove the side bar from my frontpage
uyi asked 4 months ago

Hello All, please anyone knows how i can remove the side bar from my front page and add extra other widget? i am using the free club Travel Theme

1 Answers
thewpclub Staff answered 4 months ago

Hello,
To delete the sidebar on the front page you have to change the index.php file.
Delete the lines 14, 15, 16, 18, 25, 26, 27, 28, 29
To add a extra widget you have to change the file functions.php. After line 327 you add the following code

register_sidebar( array(
 'name' => __( 'WIDGETNAME', 'clubtravel' ),
 'id' => 'WIDGETNAME-sidebar',
 'before_widget' => '<div class="WIDGETNAME">',
 'after_widget' => '</div>',
 'before_title' => '<h2>',
 'after_title' => '</h2>',
) );

The followling code you add at the place you want the widget to show.

<?php if ( is_active_sidebar( 'WIDGETNAME-sidebar' ) ) : ?>
 <?php dynamic_sidebar( 'WIDGETNAME-sidebar' ); ?>
<?php endif; ?>

If you have any questions you can sent me a email: http://www.thewpclub.com/contact/