• 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

Metro Theme: Read More Button

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 › General Discussion › Metro Theme: Read More Button

This topic is: resolved

Tagged: read more button

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago by Anita.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 28, 2013 at 2:35 pm #48265
    ironjiant
    Member

    I am using the Metro theme which is very easy to edit except for this one thing. I've read several Posts on editing the Read More Link and transforming it into a button on the Home Page of http://www.theindieconsultant.com.

    After several failed attempts to add code to functions.php I am here!

    I've gone here: http://my.studiopress.com/snippets/post-excerpts/#content-more-link

    And here: http://www.studiopress.community/topic/help-change-read-more-link-to-image/

    And here is my code:

    /** Modify the WordPress read more link */
    add_filter( 'the_content_more_link', 'custom_read_more_link' );
    function custom_read_more_link() {
    return '<br />read more';
    }

    But it doesn't seem to work. Is there a Genesis setting that I need to change?

    Thanks!
    -Jim

    June 28, 2013 at 2:46 pm #48271
    ironjiant
    Member

    LOL... OK let's try this again:

    /** Modify the WordPress read more link */
    add_filter( 'the_content_more_link', 'custom_read_more_link' );
    function custom_read_more_link() {
        return '<br /><a href="' . get_permalink() . '"><img src="http://theindieconsultant.com/wp-content/uploads/2013/06/read-more-button.png" alt="read more" /></a>';
    }
    June 28, 2013 at 6:25 pm #48305
    Anita
    Keymaster

    If you want to customize the color or apply a background image to the Read More link, you need to do that with CSS. Your Read More is in there are #more-link so... start with this:

    .more-link {
    background: #cc9900;
    decoration: none;
    }

    You can add a background image to that, etc., etc.


    Love coffee, chocolate and my Bella!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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