Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Denis Yanchevskiy

    (@denisco)

    Hello @xstarrx,

    I’m sorry to be late with the reply.

    Try line 116 in the /inc/helpers/layout-functions.php file.

    I think it should looks something like this:

    $args = array(
    	'action'             => '/newfilename.php', //I've added this line.
    	'class_form'         => 'form media-body',
    	'class_submit'       => 'btn btn-primary pull-right',
    	'title_reply_before' => '<h3 class="hestia-title text-center">',
    	'title_reply_after'  => '</h3> <span class="pull-left author"> <div class="avatar">' . $current_user . '</div> </span>',
    	'must_log_in'        => '<p class="must-log-in">' .
    							sprintf(
    								wp_kses(
    									/* translators: %s is Link to login */
    									__( 'You must be <a href="%s">logged in</a> to post a comment.', 'hestia' ),
    									array(
    										'a' => array(
    											'href' => array(),
    										),
    									)
    								),
    								esc_url( wp_login_url( apply_filters( 'the_permalink', esc_url( get_permalink() ) ) ) )
    							) . '</p>',
    	'comment_field'      => '<div class="form-group label-floating is-empty"> <label class="control-label">' . esc_html__( 'What\'s on your mind?', 'hestia' ) . '</label><textarea id="comment" name="comment" class="form-control" rows="6" aria-required="true"></textarea><span class="hestia-input"></span> </div>',
    );
    Thread Starter Danielle

    (@xstarrx)

    Thanks so much for your reply, this has worked! Top-notch support ??

    Thread Starter Danielle

    (@xstarrx)

    Hi again, sorry another potential noob question:

    How would I go about making the above changes in a Hestia child theme, rather than the Hestia theme itself? When I tried this before I did it quickly in the parent theme and it works, but now trying to put this into the child theme so it doesn’t get overwritten!

    Thanks again for your help ??

    Plugin Author Denis Yanchevskiy

    (@denisco)

    Try copying the hestia_comments_template function from the parent theme into the functions.php of your child theme.

    function hestia_comments_template() {
    	if ( is_user_logged_in() ) {
    		$current_user = get_avatar( wp_get_current_user(), 64 );
    	} else {
    		$current_user = '<img src="' . get_template_directory_uri() . '/assets/img/placeholder.jpg" height="64" width="64"/>';
    	}
    
    	$args = array(
    		'action'             => '/newfilename.php', //I've added this line.
    		'class_form'         => 'form media-body',
    		'class_submit'       => 'btn btn-primary pull-right',
    		'title_reply_before' => '<h3 class="hestia-title text-center">',
    		'title_reply_after'  => '</h3> <span class="pull-left author"> <div class="avatar">' . $current_user . '</div> </span>',
    		'must_log_in'        => '<p class="must-log-in">' .
    								sprintf(
    									wp_kses(
    										/* translators: %s is Link to login */
    										__( 'You must be <a href="%s">logged in</a> to post a comment.', 'hestia' ),
    										array(
    											'a' => array(
    												'href' => array(),
    											),
    										)
    									),
    									esc_url( wp_login_url( apply_filters( 'the_permalink', esc_url( get_permalink() ) ) ) )
    								) . '</p>',
    		'comment_field'      => '<div class="form-group label-floating is-empty"> <label class="control-label">' . esc_html__( 'What\'s on your mind?', 'hestia' ) . '</label><textarea id="comment" name="comment" class="form-control" rows="6" aria-required="true"></textarea><span class="hestia-input"></span> </div>',
    	);
    
    	return $args;
    }
    Thread Starter Danielle

    (@xstarrx)

    Thank you so much! This works perfectly now, thank you so much again ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Oops! That page can’t be found when uploading image’ is closed to new replies.