Community Forums › Forums › Internationalization and Translations › daily dish pro – leave a comment
This topic contains 10 replies, has 2 voices, and was last updated by Anita 2 months, 2 weeks ago.
-
AuthorPosts
-
December 13, 2020 at 1:45 pm #502296
Hi there,
I'm using the daily dish pro theme and I'm having troubles finding where I can change the "leave a comment", "Read more" and "previous page" and "Next page" into Dutch within my blog and category sections.
Could someone please help me and point me in the right direction? Thank you so much!
December 13, 2020 at 4:13 pm #502297Hi @daisy_web. Can you provide a link to your website?
December 14, 2020 at 2:46 am #502299Hi Anita,
Thanks for the fast reply. I'm currently building my website. I want to launch it somewhere within the next 2 weeks.
I can provide screenshots. Does that help?
December 15, 2020 at 7:37 am #502307Hi Anita,
The website is now online > https://www.whats-cookin.nl/
December 15, 2020 at 7:53 am #502308Most of what you want is here - https://my.studiopress.com/documentation/snippets/. Do not use any code referencing XHTML for your theme.
December 15, 2020 at 1:06 pm #502316Yes I saw this. So for example if I want to change the "leave a comment text" then I need to use this snippet:
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.//* Modify the comment link text in comments
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter( $post_info ) {
return '[post_comments zero="Leave a Comment" one="1 Comment" more="% Comments"]';
}But I'm not a webdesigner. I'm not sure where to find the functions.php file within my theme. Do I need to use FTP?
And I can just change the text in the script saying "Leave a Comment" into Dutch?
Thank you for your help!
December 15, 2020 at 1:11 pm #502317I've found it. And it works. Thank you!
December 15, 2020 at 1:21 pm #502318The only things that I can't seem to change are:
https://www.whats-cookin.nl/category/ontbijt-en-lunch/
The [Read more...] link on those pages, I want to translate this to Dutch. So I've found this snippet:
//* Modify the WordPress read more link
add_filter( 'the_content_more_link', 'sp_read_more_link' );
function sp_read_more_link() {
return '[Continue Reading]';
}But I think I need to change something, because it's not showing any changes on my categorie sections.
And one last thing: I want to translate previous and next page on for example:
https://www.whats-cookin.nl/category/hoofdgerechten/
I've found this snippet, but again I can't seem to get it to work right for me.
//* Customize the previous page link
add_filter ( 'genesis_prev_link_text' , 'sp_previous_page_link' );
function sp_previous_page_link ( $text ) {
return '« Custom Previous Page Link';
}Could you help me one last time? Thank you!
December 15, 2020 at 1:28 pm #502319The Read More on the Blog archive page use this one - https://my.studiopress.com/documentation/snippets/post-excerpts/modify-the-content-limit-read-more-link/. I just tested that one and it works.
December 15, 2020 at 1:32 pm #502320Thanks I've got everything working now. Have a great day or evening depending on where you are 🙂
December 15, 2020 at 1:35 pm #502321You're welcome! I'll mark this resolved and closed.
-
AuthorPosts
The topic ‘daily dish pro – leave a comment’ is closed to new replies.