Viewing 4 replies - 1 through 4 (of 4 total)
  • You can use the following snippet to change the comment text, to add this snippet you can use code snippet plugin / or function.php file of child theme

    add_filter( 'comment_form_defaults', function( $fields ) {
        $fields['must_log_in'] = sprintf( 
            __( '<p class="must-log-in">
                     You must <a href="%s">SIGN UP</a> or 
                     <a href="%s">LOGIN</a> to post a comment.</p>' 
            ),
            wp_registration_url(),
            wp_login_url( apply_filters( 'the_permalink', get_permalink() ) )   
        );
        return $fields;
    });

    you can adjust the code as per your requirement.

    Thread Starter Cezar Ayran

    (@ayrancd)

    @developerpaddy this is the code I found as well but for some reason it doesn’t change anything…

    If you are using custom theme or a page builder then it will differ so we need to know what theme or page builder are you using.

    Thread Starter Cezar Ayran

    (@ayrancd)

    @developerpaddy good catch. I am using Avada, I’ll talk to them tks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change: You must be logged in to post a comment.’ is closed to new replies.