• 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

Change 'Read More' in sidebar

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 › StudioPress Themes › Magazine Pro › Change 'Read More' in sidebar

This topic is: not resolved

Tagged: post.php, read more

  • This topic has 3 replies, 4 voices, and was last updated 1 year ago by Toby39.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 19, 2021 at 5:07 am #503137
    RussCW
    Participant

    Theme: Magazine Pro
    Website: http://www.welshcountry.co.uk
    Hi
    I have used the following code to change how the 'Read More' link looks.

    //* 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() . '">[Continue Reading]</a>';
    }

    However, I would like to have a different looking 'Read More' link in the sidebar. I guss it will be an 'if' statement but I'm just not savvy enough with PHP to know exatly how to implement it. Any suggestions?

    February 24, 2021 at 12:34 pm #503202
    AnitaC
    Keymaster

    If you are displaying the Read More from the sidebar, you can just target the CSS for it to look different. You said how it "looks" and not how it functions.


    Need help with customization or troubleshooting? Reach out to me.

    September 2, 2022 at 11:17 pm #505749
    Maximo1654
    Participant

    Instead of using this code. You could easily use the button. Which is also available in the presets of the wordpress. As we are also using those simple buttons our welding website. Where we are providing beginner review about different welding helmets and its accessories.

    April 27, 2024 at 3:24 pm #507911
    Toby39
    Participant

    I appreciate that it has been well over a year sice the last post here, but I decided to post in case this thread might get a response.

    I see that @RussCW managed to use the below code to change [Read more...] into [Continue Reading].

    //* 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() . '">[Continue Reading]</a>';
    }

    I have copied the code into my functions.php for the child theme of Genesis Sample, but it doesn't seem to have worked.

    However, I have now managed to change the file in
    /lib/structure/post.php
    in both the Child theme folder and Parent theme folder, but only the changes to the file in the Parent theme seem to have worked.

    Can anyone tell me please; how can i get the post.php file in the Child theme folder to overide the Parent?

    Thanks for reading

  • 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

© 2025 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