• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

daily dish pro – leave a comment

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Internationalization and Translations › daily dish pro – leave a comment

This topic is: resolved
  • This topic has 10 replies, 2 voices, and was last updated 2 years, 3 months ago by Anita.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • December 13, 2020 at 1:45 pm #502296
    daisy
    Participant

    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 #502297
    Anita
    Keymaster

    Hi @daisy_web. Can you provide a link to your website?


    Love coffee, chocolate and my Bella!

    December 14, 2020 at 2:46 am #502299
    daisy
    Participant

    Hi 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?

    Screenshot 1

    Screenshot 2

    December 15, 2020 at 7:37 am #502307
    daisy
    Participant

    Hi Anita,

    The website is now online > https://www.whats-cookin.nl/

    December 15, 2020 at 7:53 am #502308
    Anita
    Keymaster

    Most of what you want is here - https://my.studiopress.com/documentation/snippets/. Do not use any code referencing XHTML for your theme.


    Love coffee, chocolate and my Bella!

    December 15, 2020 at 1:06 pm #502316
    daisy
    Participant

    Yes 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 #502317
    daisy
    Participant

    I've found it. And it works. Thank you!

    December 15, 2020 at 1:21 pm #502318
    daisy
    Participant

    The only things that I can't seem to change are:

    https://www.whats-cookin.nl/category/ontbijt-en-lunch/

    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 #502319
    Anita
    Keymaster

    The 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.


    Love coffee, chocolate and my Bella!

    December 15, 2020 at 1:32 pm #502320
    daisy
    Participant

    Thanks 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
    Anita
    Keymaster

    You're welcome! I'll mark this resolved and closed.


    Love coffee, chocolate and my Bella!

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘daily dish pro – leave a comment’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble