• 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 make image link to NONE by default

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 make image link to NONE by default

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 10 years, 7 months ago by beautyfool.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 20, 2015 at 6:29 pm #174424
    csborgman
    Member

    I'm using Dynamik Website Builder.

    Every since I updated Genesis this snippet no longer works:

    `// Makes sure that single images are not linked to anything.

    add_action( 'after_setup_theme', 'default_attachment_display_settings' );

    /**

    * Set the Attachment Display Settings "Link To" default to "none"

    *

    * This function is attached to the 'after_setup_theme' action hook.

    */

    function default_attachment_display_settings() {

    update_option( 'image_default_align', 'center' );

    update_option( 'image_default_link_type', 'none' );

    update_option( 'image_default_size', 'full' );

    }`

    So then I tried this:

    `function wpb_imagelink_setup() {

    $image_set = get_option( 'image_default_link_type' );

    if ($image_set !== 'none') {

    update_option('image_default_link_type', 'none');

    }

    }

    add_action('admin_init', 'wpb_imagelink_setup', 10);`

    That didn't work so I installed this plugin:

    No Image Link

    Still, when I add an image to a post or page it always shows Link to:
    Image File.

    Please advise.

    Thank you!

    Chris Borgman

    http://d01.profoliolive.com
    December 21, 2015 at 4:06 am #174449
    beautyfool
    Member

    Hey there,

    I've noticed that when uploading an image I just click "none" in the Link to: dropdown, and after awhile, it automatically just checks none.

    I know it's not exactly what you were looking for but hope that helps a little!

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