• Resolved cloudcomputingtopics

    (@cloudcomputingtopics)


    Hi,
    I am using a static page (as a landing page) and have disabled “Comments”, but then receive the following text at the bottom of the page:

    “Comments are closed”

    I would like to hide/disable this text on the landing page, but not necessarily on the other pages. I am using theme Eximius
    This code is enabling the “comments are closed” message in comments.php
    <p class="nocomments"><?php _e('Comments are closed', 'default'); ?>.</p>

    I was thinking of disabling by using:

    <?php if( !is_home() ) : ?>
    <p class="nocomments"><?php _e('Comments are closed', 'default'); ?>.</p>
    <?php endif; ?>

    BUT, obviously is_home() does not relate to the static page, but the now disabled default homepage. Any ideas how I can adjust this?

    Thanks,
    Olafur

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Hide “Comments are closed” on static page’ is closed to new replies.