WordPress.org

Ready to get started?Download WordPress

Forums

BlogoLife
[resolved] Getting rid of the comments boxes on pages in blogolife (5 posts)

  1. kathyennis
    Member
    Posted 2 years ago #

    Hi, I want to remove the comments boxes from the pages in Blogolife. On my other WordPress sites I have done this on the Page Template (page.php) by changing the code from <?php comments_template(); ?> to <?php// comments_template(); ?>. Unfortunately this script is not in the Page Template on Blogolife. Please point me in the right direction. Thanks

    http://wordpress.org/extend/themes/blogolife/

  2. Your theme is using the get_template_part() function to call in content-page.php in this line:

    get_template_part('content', 'page' ) ;

    That line refers to the file content-page.php - go in and comment out line 62.

    <?php comments_template( '', true ); ?>

  3. kathyennis
    Member
    Posted 2 years ago #

    Thanks so much this solved the issue. You are very helpful

  4. raymcghee
    Member
    Posted 2 years ago #

    Thank you. It worked like a treat. Without these forums I would be bamboozled!

  5. hansholland
    Member
    Posted 1 year ago #

    Hi everybody,

    I also use the free Blogolife template and I also want to use this template as a regular website with no comment boxes at all on any of the pages (in other words, completely disable the blog function).

    I'm afraid I still don't get it.
    I know how to find the section where all the template files are (I can see the long list on the right hand side).
    I opened every file and looked for the following line: get_template_part('content', 'page' ) ;

    If I understand zooini correctly, I should replace that line with the line:
    <?php comments_template( '', true ); ?>

    My question: which one of the files on the right hand side do I modify?
    Also, you seem to suggest that the lines are numbered. I don't see any numbered lines??

    I'm sorry I'm new at this. Any help would be greatly appreciated.

    Hans
    Here's my first WordPress site in progress:
    http://www.delheystukadoors.nl/

    P.S. I also want to add a, contact us, page. Is that possible with this template?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags