• Since updating to 4.2.2 I’ve lost the “Submit” button for post comments. None of my users can post comments to any of my posts. The comment box is there (they can type a comment) but they have no way to submit.

    I’m using the Path theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • have the same problem

    Thread Starter netposer

    (@netposer)

    I found a fix on another site (I will see if I can find the link) and where the Path theme uses “hybrid-core” the site was using “MYSITE_TEXTDOMAIN”. Other than that it brings the Comment button back.

    Open (wp-content\themes\path\library\functions\comments.php)
    Find:
    ‘label_submit’ => _( ‘Post Comment’, ‘hybrid-core’ ),
    And on the next line at the two lines below.

    I added the second and third lines below. I changed the original ‘MYSITE_TEXTDOMAIN’ to ‘hybrid-core’ like the first line.

    ‘label_submit’ => _( ‘Post Comment’, ‘hybrid-core’ ),
    ‘submit_button’ => _( ‘<input name=”%1$s” type=”submit” id=”%2$s” class=”%3$s” value=”%4$s” />’, ‘hybrid-core’ ),
    ‘submit_field’ => __( ‘<p class=”form-submit”>%1$s %2$s’, ‘hybrid-core’ ),

    Theme Author Sami Keijonen

    (@samikeijonen)

    The problem is that I can’t easily update the themes like Eino or Path in www.remarpro.com because there are so much that have changed in the guidelines.

    Anyways try this in your child theme functions.php.

    /**
     * Add Submit Button in Comment Form Args
     * @link https://themehybrid.com/board/topics/askimet-blocking-comment-button#post-4878
     */
    function prefix_comment_form_args( $args ) {
    
    	$args['class_submit']  = 'submit';
    	$args['name_submit']   = 'submit';
    	$args['submit_button'] = '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />';
    	$args['submit_field']  = '<p class="form-submit">%1$s %2$s</p>';
    
    	return $args;
    }
    add_filter( 'comment_form_defaults', 'prefix_comment_form_args', 11 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No Submit button on Post comments?’ is closed to new replies.