Community Forums › Forums › Internationalization and Translations › daily dish pro – leave a comment
- This topic has 10 replies, 2 voices, and was last updated 3 years, 9 months ago by AnitaC.
-
AuthorPosts
-
December 13, 2020 at 1:45 pm #502296daisyParticipant
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 #502297AnitaCKeymasterHi @daisy_web. Can you provide a link to your website?
Need help with customization or troubleshooting? Reach out to me.
December 14, 2020 at 2:46 am #502299daisyParticipantHi 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 #502307daisyParticipantHi Anita,
The website is now online > https://www.whats-cookin.nl/
December 15, 2020 at 7:53 am #502308AnitaCKeymasterMost of what you want is here - https://my.studiopress.com/documentation/snippets/. Do not use any code referencing XHTML for your theme.
Need help with customization or troubleshooting? Reach out to me.
December 15, 2020 at 1:06 pm #502316daisyParticipantYes 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 #502317daisyParticipantI've found it. And it works. Thank you!
December 15, 2020 at 1:21 pm #502318daisyParticipantThe only things that I can't seem to change are:
https://www.whats-cookin.nl/category/ontbijt-en-lunch/
https://www.whats-cookin.nl/blog/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 #502319AnitaCKeymasterThe 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.
Need help with customization or troubleshooting? Reach out to me.
December 15, 2020 at 1:32 pm #502320daisyParticipantThanks I've got everything working now. Have a great day or evening depending on where you are 🙂
December 15, 2020 at 1:35 pm #502321 -
AuthorPosts
- The topic ‘daily dish pro – leave a comment’ is closed to new replies.