• Resolved bwaw

    (@bwaw)


    I am currently using the Tripleship ‘tanzaku’ theme with some modifications made to the default design. I do not want people to be able to leave a comment on a page. Leaving comments on a post is fine, but leaving a comment on for instance the about page seems a bit silly to me. I have already disabled the possibility to leave a comment by unchecking the ‘allow comments’ on the edit page of the about page.
    The message ‘Sorry, the comment form is closed at this time.’ that shows up when the ‘allow comments’ is left unchecked also has been removed by putting <!– and –> before and after the php line in the comments.php file as follows:

    <!–
    <div class=”comment-content”>
    <p><?php _e(‘Sorry, the comment form is closed at this time.’); ?></p>
    </div>
    –>

    It’s a bit crude as it means the message will never show up again even on a post, but it’s the only thing I can do with my limited knowledge of php.

    Right now a block with the title “no comments” still shows up on the about page. This has no purpose as leaving a comment has been disabled for this specific page. So I would like to get rid of it as well. This however seems impossible. I really don’t know what or where to make changes.

    If anybody can help me?

    Thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • look in theme’s page.php
    remove this line
    <?php comments_template(); ?>
    this will now not display comments on pages
    I would put the other code back in

    Thread Starter bwaw

    (@bwaw)

    Hello samboll. Thanks for your reply. Problem is the tanzaku theme doesn’t have a page.php. I have checked the default wordpress theme and removed the line you mentioned from its page.php, but this doesn’t work either.

    ok then – easy enough
    copy the contents of the index.php from tanzaku theme into notepad
    save as page.php
    remove <?php comments_template(); ?>
    from the new page.php
    upload it with the other tanzaku theme files
    you’re all set
    just tested it on local install to be sure

    Thread Starter bwaw

    (@bwaw)

    Thank you, thank you and thank you. It is really easy. I’ve been trying to get rid of it for sometime now… I am just to stupid to ask for help sooner (or immediately).

    I can go sleep now 🙂

    Hi…

    sorry to bud into your conversation like this. First of all thank you samboll for your help so far.

    I’m using the Tripleship ‘tanzaku’ theme and I’d like to do the same to the posts page. Basically, I couln’t car what anyone has to say about the entire site 😉

    Is there any way you could help me do this?

    Thanks,

    Gabe

    GOT IT!

    All I had to do was remove the same line of code from index.php. But I’m sure you already know that.

    Thanks again!

    Gabe

    hi there i am not a programmer, just a designer with the very slightest knowledge — i have 2 questions:
    1 – i wish to remove all the pagination and have all the grid images on one page, how is that possible, where can i deactivate or remove the pagination code?
    2 – how can i make the excerpt work? it doesn’t work now..

    Please let me know, thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Tanzaku theme – don’t show ‘no comments’ on about page’ is closed to new replies.