WordPress.org

Forums

Kavya
[resolved] How to remove the 'leave a comment' box from pages (2 posts)

  1. rush_house
    Member
    Posted 1 year ago #

    How do I remove the 'leave a comment' box from the pages on my website?

    Also how do I add in a footer on the Kavya theme?

    Regards

  2. Suresh Patel
    Member
    Theme Author

    Posted 10 months ago #

    Hi Rush,

    Do you mean the comments? If so you can go to the post or page and click screen options in the top right. After that, a meta box will appear under the editor where you can toggle comments off.

    There is no footer widgets for the theme. But off course you can add the footer widget by adding the following code in function.php file.

    function kavya_widgets_init() {
    	register_sidebar( array(
    		'name'          => __( 'Sidebar', 'kavya' ),
    		'id'            => 'sidebar-1',
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h1 class="widget-title">',
    		'after_title'   => '</h1>',
    	) );
    	register_sidebar( array(
    		'name'          => __( 'Sidebar', 'kavya' ),
    		'id'            => 'sidebar-1',
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h1 class="widget-title">',
    		'after_title'   => '</h1>',
    	) );
    	register_sidebar( array(
    		'name'          => __( 'Footer 1', 'kavya' ),
    		'id'            => 'footer-1',
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h1 class="widget-title">',
    		'after_title'   => '</h1>',
    	) );
    	register_sidebar( array(
    		'name'          => __( 'Footer 2', 'kavya' ),
    		'id'            => 'footer-2',
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h1 class="widget-title">',
    		'after_title'   => '</h1>',
    	) );
    	register_sidebar( array(
    		'name'          => __( 'Footer 3', 'kavya' ),
    		'id'            => 'footer-3',
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h1 class="widget-title">',
    		'after_title'   => '</h1>',
    	) );
    }
    add_action( 'widgets_init', 'kavya_widgets_init' );

    Thanks & Regards,
    Suresh Patel

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.