Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #528835

    Hi, I’ve added a comments area onto a page, but can’t see how to change the title. I don’t like ‘Trackbacks & Pingbacks’ wuld prefer just ‘Comments’. Where can I amend this please?

    #528871

    Hi andrea!

    Just to understand, you need to translate them?
    if so, you can use a plugin like https://wordpress.org/plugins/loco-translate/

    and it will do help you do any translations.

    Let me know if you have any more questions, will be happy to answer them for you.

    Best regards,
    Basilis

    #528873

    No it’s still in English. I don’t like the wording on the h4 pingback_heading when I add comments into the page – i want it to say ‘comments’ not ‘Trackbacks & Pingbacks’ – but can’t see where to edit this.

    #529255

    Hi!

    Please go to Appearance > Editor and open Comments.php file and find

    echo "<h4 id='pingback_heading'>".__('Trackbacks & Pingbacks','avia_framework')."</h4>";

    and change it as needed

    Best regards,
    Yigit

    #529264

    Thank you, that’s fine – but will it be overwritten if the theme updates?

    Also, how do I get the reply to go underneath the comment, it doesn’t read right seeing the reply before the comment.

    #529740

    Hi!

    Please create a child theme then copy the comments.php file there. If you want to move the pingbacks above the replies, look for this code:

    //get ping and trackbacks
    			$ping_entries = get_comments(array( 'type'=> 'pings', 'post_id' => $post->ID ));
    			
    			if(!empty($ping_entries)){
    			echo "<h4 id='pingback_heading'>".__('Trackbacks & Pingbacks','avia_framework')."</h4>";
    			?>
    			
    			<ol class="pingbacklist">
    				<?php
    					/* 
    					 * Loop through and list the pingbacks and trackbacks. 
    					 */
    					wp_list_comments( array( 'type'=> 'pings', 'reverse_top_level'=>true ) );
    				?>
    			</ol>
    			<?php } ?>

    Move it on top of this one:

    //get comments
    			$comment_entries = get_comments(array( 'type'=> 'comment', 'post_id' => $post->ID ));
    			
    			if(!empty($comment_entries)){
    			
    		 	?>
    			<ol class="commentlist" id="comments">
    				<?php
    					/* Loop through and list the comments. Tell wp_list_comments()
    					 * to use avia_inc_custom_comments() to format the comments.
    					 * If you want to overload this in a child theme then you can
    					 * define avia_framework_comment() and that will be used instead.
    					 * See avia_framework_comment() in includes/loop-comments.php for more.
    					 */
    					wp_list_comments( array( 'type'=> 'comment', 'callback' => 'avia_inc_custom_comments' ) );
    				?>
    			</ol>
    			<?php 
    			}

    Best regards,
    Ismael

    #532507

    Hi, I have created a child theme and uploaded it. But I’m losing the style settings. As per your instructions:

    Once you’ve activated your Enfold Child Theme go to the Import/Export tab and you’ll have a new option to “Import Settings from your Parent Theme“. Once clicked, it will work run for a moment while it imports the data. When the page refreshes your parent settings will replace the default theme settings.

    I have done that 1. activated child theme then 2. import settings from the parent theme – it brings in the logo from the parent theme but is not bringing in the stylings for colours, fonts etc – all the styling is lost.

    Please advise how I can move to a child theme but bring in the way I’ve already set up the parent theme.

    I do want to move over to the child theme if possible, it would make updates easier going forward.

    #533017

    Hi!

    You have to import the parent theme settings, wait for it load then toggle any theme options. Save changes. It will bring back your styling modifications.

    Cheers!
    Ismael

    #533161

    Got it thank you :-)

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Rename 'Trackbacks & Pingbacks' as 'Comments'’ is closed to new replies.