• Resolved wizlove

    (@wizlove)


    My site is in French and I want to modify the READ MORE buttons after each post excerpt on the home page. I need to find where is the “READ MORE” statement in the php files in order to translate it.

    Anybody knows where it is hidden? I did not find it.

    Update, but still not corrected:
    I have finally found the READ MORE in template-parts, content.php. I have changed its two occurrences in line 38 for French translation, but it stills displays in English, even if I clear WP cache and browser cache.

    I am new to this, so I need some help, here.

    • This topic was modified 6 years, 5 months ago by wizlove.
    • This topic was modified 6 years, 5 months ago by wizlove.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Share your url please.

    Thread Starter wizlove

    (@wizlove)

    Thanks for answering, Goldfishflake, but I have found the solution.

    There was another statement about REED MORE in the functions.php file, line 197 .

    I have modified to

    return ‘…<p class=”read-more”>‘ . __( ‘ Lire la suite…’, ‘nisarg’ ) . ‘<span class=”screen-reader-text”> ‘. __( ‘ Lire la suite…’, ‘nisarg’ ).'</span></p>’;

    Et voilà! It now shows as “Lire la suite…” on bottom of my posts, on homepage ??

    I did not reverse my previous change in the content.php file, so maybe the 2 changes are needed for this adjustment to work, I have no idea, the cascade and priorities in templates and commands are still a kind of mystery to me.

    For those who are even newer to theme editing than I am, i used the editor in WordPress dashboard, at appearance/editor, and have accessed the file, listed in theright sidebar, and modified them. Of course, like suggested everywhere, I have made back up copies of any file I tried to modifiy, in case it would have went bad.

    I think now I will create a child theme. I have already done 4 small adjustments in the last few days, like this one, and I wouldn’t want to have to do this all over in the event of a theme update.

    • This reply was modified 6 years, 5 months ago by wizlove.
    • This reply was modified 6 years, 5 months ago by wizlove.
    • This reply was modified 6 years, 5 months ago by wizlove.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Front page “READ MORE” buttons’ is closed to new replies.