Support » Themes and Templates » Kavya » How to remove the 'leave a comment' box from pages

  • Resolved rush_house

    (@rush_house)


    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

Viewing 1 replies (of 1 total)
  • Theme Author Suresh Patel

    (@suresh_p12)


    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

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove the 'leave a comment' box from pages’ is closed to new replies.