• 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

Read More Styling

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 › Read More Styling

This topic is: resolved

Tagged: teasers

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago by manavecplan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 22, 2016 at 7:03 am #188013
    manavecplan
    Member

    Hey,

    So I'm trying to style the 'Read more' links on my teasers which currently look like this: http://avinashdsouza.me/blog/

    However, the teasers(manual excerpts) aren't picking up the styling that I've saved as under:

    /*POSTS: Styling teasers
    --------------------------------------------- */
    a.more-link {
    font-size: 16px;
    font-size: 1.6rem;
    font-family: "Montserrat-SemiBold";
    text-transform: uppercase;
    padding:5px 0px 0px 0px;
    letter-spacing:1px;
    background:none;
    display:block;
    text-decoration: none;
    }
    

    I checked the page CSS via the inspector so I think I've got the selector right.

    Also, this CSS works perfectly well on automatic excerpts but doesn't get picked up for manual excerpts.

    What am I doing wrong for manual excerpts?

    http://avinashdsouza.me/blog/
    June 22, 2016 at 7:42 pm #188070
    Christoph
    Member

    Hi,

    not sure what code you are using to show the read more link on the manual excerpts, but you have to add the more-link class to the <a> tag.
    http://prntscr.com/bjti39


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    June 25, 2016 at 5:50 am #188268
    manavecplan
    Member

    Hey Christoph,

    Your post helped me dig a bit further and helped me solve it! Works like a charm now... 🙂

    All I needed to do was add a class to the PHP code that I'm using and target it accordingly.

    The amended PHP would be:

    //Adding a Read More for manual excerpts
    function manual_excerpt_more( $excerpt ) {
    	$excerpt_more = '';
    	if( has_excerpt() ) {
        	$excerpt_more = '&nbsp;<a class="manual-excerpt-more-link" href="' . get_permalink() . '" rel="nofollow">READ MORE ?’</a>';
    	}
    	return $excerpt . $excerpt_more;
    }
    add_filter( 'get_the_excerpt', 'manual_excerpt_more' );

    The amended CSS would be:

    a.manual-excerpt-more-link {
    font-size: 14px;
    font-size: 1.4rem;
    font-family: "Montserrat-SemiBold";
    text-transform: uppercase;
    padding:5px 0px 0px 0px;
    letter-spacing:1px;
    background:none;
    display:block;
    text-decoration: none;
    /*text-align: center;*/
    }
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Read More Styling’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

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