• 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

Link in footer open in new window/tab

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 › Link in footer open in new window/tab

This topic is: resolved

Tagged: footer link

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 7 months ago by Susan.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 4, 2013 at 2:14 am #65322
    Treefungus
    Member

    I have this code and added rel="_blank" but the link opens in same window. I can add links in hook boxes that opens in new window/tab but links in my custom_footer_creds_text function will not open in new window/tab ( () in "href" added on purpose to show you the code)

    Any idea why?

    Thanks

    /** Customize the credits */
    add_filter( 'genesis_footer_creds_text', 'custom_footer_creds_text' );
    function custom_footer_creds_text() {
    echo '<div class="creds"><p>';
    echo 'Copyright © 2010-';
    echo date('Y');
    echo ' · XYZL. ·<span class="iphone"> Developed by a <(a)href="http://www.xyz.com" rel="_blank">xyz </(a)></span>';
    echo '</p></div>';
    }

    October 4, 2013 at 6:59 am #65336
    Susan
    Moderator

    try target="_blank"

    October 4, 2013 at 7:03 am #65337
    Treefungus
    Member

    Beeeeeeaaaaautiful!!

    That did it...

    Thank you so much.

    October 4, 2013 at 7:18 am #65342
    Susan
    Moderator

    You are welcome 🙂 - closing as resolved.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Link in footer open in new window/tab’ 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

© 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