Support » Theme: BlogoLife » Getting rid of the comments boxes on pages in blogolife

  • Resolved kathyennis

    (@kathyennis)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    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 ); ?>

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

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

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting rid of the comments boxes on pages in blogolife’ is closed to new replies.