• 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

Can't change "continue reading" text

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 › Archived Forums › Design Tips and Tricks › Can't change "continue reading" text

This topic is: not resolved

Tagged: change, continue reading, modify

  • This topic has 5 replies, 3 voices, and was last updated 8 years, 9 months ago by JanHoek.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • June 3, 2014 at 6:05 am #107936
    alfredo
    Member

    Hi!

    I added the code snippets at http://my.studiopress.com/snippets/post-excerpts/#content-more-link to my functions file but changes are not applied to my site. Basically I want the "continue reading" text to read "more" instead.

    What am I missing? The code below is what I added to functions.php

    //* Modify the WordPress read more link
    add_filter( 'the_content_more_link', 'sp_read_more_link' );
    function sp_read_more_link() {
    	return '<a class="more-link" href="' . get_permalink() . '">[more]</a>';
    }
    //* Modify the Genesis content limit read more link
    add_filter( 'get_the_content_more_link', 'sp_read_more_link' );
    function sp_read_more_link() {
    	return '... <a class="more-link" href="' . get_permalink() . '">[more]</a>';
    }

    Thanks for your help!

    http://www.spanishpicturedescription.com/
    June 3, 2014 at 11:16 am #107978
    Brad Dalton
    Participant

    What settings are you using in Genesis > Theme Settings > Content Archives?


    Tutorials for StudioPress Themes.

    June 3, 2014 at 11:20 am #107979
    alfredo
    Member

    Thanks for your reply. Please see here http://postimg.org/image/kslk8jnhz/

    Thanks!

    June 3, 2014 at 12:02 pm #107985
    Brad Dalton
    Participant

    Tested and works.

    Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

    Remove the other snippets you added.

    Works when using the content limit.


    Tutorials for StudioPress Themes.

    June 6, 2014 at 12:28 pm #108353
    alfredo
    Member

    Hi, thanks for your reply.
    I'm still having some issues.

    I'm not using the content limit now. (please see pic: http://postimg.org/image/uzz6m1k4n/)
    I'm using this snippet:

    //* Modify the WordPress read more link
    add_filter( 'the_content_more_link', 'sp_read_more_link' );
    function sp_read_more_link() {
    return '[more]';
    }

    I want the "continue reading" text to read "more", this is working on the homepage for the main post but not for the others posts. (please check the url in my OP).

    What am I doing wrong?

    Thanks!

    June 7, 2014 at 2:29 pm #108467
    JanHoek
    Participant

    If you use the Excerpts, try this instead of the one you use

    // Add Read More Link to Excerpts
    add_filter('excerpt_more', 'get_read_more_link');
    add_filter( 'the_content_more_link', 'get_read_more_link' );
    function get_read_more_link() {
       return '...&nbsp;<a href="' . get_permalink() . '">[Read&nbsp;More]</a>';
    }

    Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and 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