I have comments off both in genesis framwework and in the AMP plugin but the “leave comments link” appears on the custom home page for me. I am not srue if there is some strange interaction going on with the genesis framework as the front page is normally widgetized. It appears the only way to stop it is to edit features.php – this nastiness worked by excluding home()
(@frenchomatic)
8 years, 8 months ago
I have comments off both in genesis framwework and in the AMP plugin but the “leave comments link” appears on the custom home page for me. I am not srue if there is some strange interaction going on with the genesis framework as the front page is normally widgetized. It appears the only way to stop it is to edit features.php – this nastiness worked by excluding home()
if ( !comments_open() && !is_home() ) { ?>
<div class=”comment-button-wrapper”>
” rel=”nofollow”><?php echo ampforwp_translation( $redux_builder_amp[‘amp-translator-leave-a-comment-text’], ‘Leave a Comment’ ); ?>