• 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: read more

  • This topic has 2 replies, 3 voices, and was last updated 6 months, 3 weeks ago by Maximo1654.
Viewing 3 posts - 1 through 3 (of 3 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
    Anita
    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.


    Love coffee, chocolate and my Bella!

    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.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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