Site logo

[Resolved] Comments section – Remove default if using the Comments block

Home Forums Support [Resolved] Comments section – Remove default if using the Comments block

Home Forums Support Comments section – Remove default if using the Comments block

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2469188
    Paul

    Hi There,

    I’d like the comments section to stay within the main column under the post content (design uses a sidebar built in a GenerateBlocks element). So I added I used a GeneratePress comments block to the main column that seems to work but now I have two comments section how do I remove the full width one within the GP theme?

    (Perhaps using the WP comments block isn’t the best way to achieve this?)

    See link to example post in private info

    Thanks
    Paul

    #2469266
    David
    Staff
    Customer Support

    Hi there,

    to remove the Theme display comments form, you can try adding this PHP Snippet to your site:

    
    add_action( 'wp', function() {
        remove_action( 'generate_after_do_template_part', 'generate_do_comments_template', 15 );
    } );
    #2469388
    Paul

    Thanks David – that worked 🙂

    #2469570
    David
    Staff
    Customer Support

    Glad to hear that!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.