• Could you please tell me how can I remove “Comments are closed, but trackbacks and pingbacks are open.” from the pages which have comments closed? I disabled comments on each page, except one. Everything under Discussion is unchecked. Where do you go to get rid of this? The theme is Stargazer by the way.

Viewing 1 replies (of 1 total)
  • [This is a duplicate of my reply to a later post on the same topic. I feel for you, so I hope this info helps.]

    My coding skills are very basic, but I accomplished this by editing the misc/comments-error.php file.

    I changed:

    <p class="comments-closed pings-open">
    		<?php
    			/* Translators: The two %s are placeholders for HTML. The order can't be changed. */
    			printf( __( 'Comments are closed, but %strackbacks%s and pingbacks are open.', 'stargazer' ), '<a href="' . esc_url( get_trackback_url() ) . '">', '</a>' );
    		?>
    	</p><!-- .comments-closed .pings-open -->

    to:

    <p class="comments-closed pings-open">
    		<?php
    			/* Translators: The two %s are placeholders for HTML. The order can't be changed. */
    			printf( __( '', '' ), '<a href="' . esc_url( get_trackback_url() ) . '">', '</a>' );
    		?>
    	</p><!-- .comments-closed .pings-open -->

    I added my edited comments-error.php file to my child theme, within a ‘misc’ folder.

    I’m sure just deleting things is leaving the code a bit sloppy. If there’s a better way, I’m all ears.

Viewing 1 replies (of 1 total)
  • The topic ‘Removing "trackbacks and’ is closed to new replies.