• 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

Error while editing read more link

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 › Error while editing read more link

This topic is: not resolved

Tagged: read more link

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 3 months ago by devents.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 16, 2013 at 8:46 am #20673
    Heldkamp
    Member

    Hello all,

    When I'm trying to edit my 'read more' link for blog posts I get a server error. And because of that my site triggerradar.nl isn't accessible anymore.

    This is the code I use (functions.php):

    /** Modify the Genesis content limit read more link */
    add_filter( ‘get_the_content_more_link’, ‘custom_read_more_link’ );
    function custom_read_more_link() {
    return ‘… <a class=”more-link” href=”‘ . get_permalink() . ‘”>[Lees meer] </a>’;
    }

    Can anyone tell me what is going wrong?

    Thanks 🙂

    February 16, 2013 at 8:47 am #20674
    Heldkamp
    Member

    For your opinion: I get this error a lot while adding code snippets to my functions.php file

    February 23, 2013 at 4:34 am #22368
    devents
    Member

    I opened the FTP Program, found the functions.php file in the Theme Folder and deleted the wrong snippet. It worked again.

    Remains the question, how to rename the "read more" button into other languages. any Ideas that work?

    February 23, 2013 at 4:44 am #22370
    devents
    Member

    Take this Snippet and change (Continue Reading) into your language

     

    /** Modify the WordPress read more link */
    add_filter( 'the_content_more_link', 'custom_read_more_link' );
    function custom_read_more_link() {
        return '<a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
    }

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

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