• 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

How can I add Title Tag to excerpts 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 › Design Tips and Tricks › How can I add Title Tag to excerpts Read More Button

This topic is: not resolved

Tagged: Extender, Genesis Extender

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 7 months ago by cruisegle.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 10, 2016 at 7:18 pm #181182
    rogger
    Member

    Hi, I want to add title tag like this one

    Read More ( Full Post Title ) instead of Read More only like below

    // 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 class="readmore" href="' . get_permalink() . '" rel="nofollow" title="Read More">#Read&nbsp;More</a>';
    }
    March 11, 2016 at 4:58 pm #181238
    Victor Font
    Moderator

    Try this (untested):

    // 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 class="readmore" href="' . get_permalink() . '" rel="nofollow" title="Read More">#Read&nbsp;More (' . get_the_title() . ')</a>';
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 13, 2016 at 6:55 am #181195
    cruisegle
    Member

    I have done this on a website before; alas it was before I started to take notes; sorry. However there is a way you can do it without attacking the functions file; though the functions file is quicker to do.

    On this test website of mine for Ventura Cruises; I have installed the Genesis Extender plugin.

    In the Hook Boxes section I have created a hook that adds this...

    <a href="<?php echo esc_url( get_permalink() ); ?>" rel="nofollow">Enquire about the <?php the_title(); ?> Cruise.<</a>

    ...to the genesis-entry_content of whatever conditionals I have set. In my case I have a set a conditional for is_front_page and is_category which means that text only sits on those pages.

    Actually the site works by using a number of hook boxes and it tests out using posts as noindex, noarchive etc so the category pages become the target pages.

    If you don't want to use the extender plugin, then I guess you could use the Genesis Hooks plugin and add something similar using the WordPress Conditionals Tags to get it to sit on the correct page.

    Hope that helps a little?


    I’m an SEO Consultant by trade; who is getting by; just!

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

© 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