• 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

Disabling Links for Featured Posts?

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 › Disabling Links for Featured Posts?

This topic is: not resolved

Tagged: featured posts, genesis, hyperlinks, Modern Portfolio Pro

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 5 months ago by anotherusername.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 10, 2014 at 5:49 am #134152
    ollie
    Member

    I'm using Modern Portfolio Pro, and I'd like to be able to prevent items in the Featured Posts widget linking to the posts themselves. Ideally I'd like the widget to just be a means of having the post content represented on the home page, but stop the featured image and post title being clickable and taking the viewer elsewhere. Is there something I can change in functions.php to achieve this?

    December 10, 2014 at 10:58 am #134202
    anotherusername
    Participant

    I don't know exactly off the top of my head, but...

    What I would do is find the code for the featured posts widget, duplicate it with a new name (append something like 'no-link' to it), remove the a tags, and then use it instead of the featured posts widget.

    Might be easier said than done...

    December 11, 2014 at 4:37 am #134264
    ollie
    Member

    Thank you, have followed this tutorial to create a child, but now I'm looking to make the edit I can't see where the link-to-post is occurring. What sort of thing should I be looking for?

    December 11, 2014 at 11:32 am #134283
    anotherusername
    Participant

    Firstly, make sure you are editing your CHILD function (just double check).

    You want to remove the link so look for an a tag.

    namely, look for something like:

    
    <a href="%s">%s</a>

    And just change it to:

    %s

    In essence, you are removing the <a href="%s"> and the </a> part of it.

    Try and see what happens.

    Hope this helps.

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

© 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