• 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 to open read more link in a new window

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 to open read more link in a new window

This topic is: resolved
  • This topic has 4 replies, 3 voices, and was last updated 10 years ago by CDM.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 15, 2013 at 11:32 pm #79399
    decarn
    Member

    Hi,

    When a reader click on the read more link, I want to launch a new window. I have found this code snippet but I can't figure out where to insert target="_blank".

    function custom_read_more_link() {
    	return '... <a href="' . get_permalink() . '">[Continue Reading]</a>';

    Any advice? Thanks.

    http://thetradersbeat.sg
    December 15, 2013 at 11:36 pm #79403
    nutsandbolts
    Member

    Try this:

    function custom_read_more_link() {
    	return '... <a target="_blank" href="' . get_permalink() . '">[Continue Reading]</a>';

    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 16, 2013 at 12:25 am #79410
    decarn
    Member

    Thanks Andrea. Works like a charm.

    December 16, 2013 at 12:26 am #79411
    nutsandbolts
    Member

    No problem! Glad I was able to help!


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    June 11, 2015 at 8:14 pm #155921
    CDM
    Member

    Hi.. And which php file is this in? I'm using News Pro theme.

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

© 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