• Hi,

    I would like to change the word ‘comments’ above the titles in the Home Page in order to translate it into Spanish. It shows the number of comments for each post. Can anyone tell me which line of code should I change?

    My web site is https://www.victorvillaplana.com

    Thank you!!

Viewing 1 replies (of 1 total)
  • Hello victorvillaplana,
    You don’t need to change any line of code. Because the theme supports translation and comments is translation ready. I checked it in my local host and it’s working fine for me.
    Incase, you have made changes to the original files. Then go to content.php and replace the code with it’s default code ie following lines:

    <?php
    					if ( comments_open() ) {
    						echo '<span class="sep">/</span> ';
    						comments_popup_link( __( '0 Comments', 'hoffman' ), __( '1 Comment', 'hoffman' ), __( '% Comments', 'hoffman' ) );
    					}
    				?>

    If you have made change to the text domain ie make changes with hoffman, you need to replace with your current text domain.
    Also while editing files make use of child theme instead so that if you update newer version of theme, your changes doesn’t disappear.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing the Word Comments’ is closed to new replies.