Home Forums Air WordPress Theme How to automatically set the pictures link to "none"

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20269
    yannCMB
    Participant
    Purchased
    Supported

    Hi all,
    Beginner question here, sorry about this. By default all pictures uploaded in WP do have an active link. How can I set the link to “none” (no link at all) at once? I know that I can do it manually one picture at the time but I do have more than 3500 photographs on my site and I would love to be able to modify the preference either in the Theme itself or in WP? Any clues? I’ve been trying several options: inserting a php script, setting the WP options.php to “none”… nothing worked so far.

    #20271
    SeaTheme
    Keymaster
    Purchased

    Hi,

    It should be possible by custom CSS.
    But I need to know how do you add the images. By WordPress classic editor? or list builder?
    Cloud you please leave a page or post(with the uploaded images) URL?

    Regards!

    SeaTheme – SeaTheme.netTwitterFacebook

    #20272
    yannCMB
    Participant
    Purchased
    Supported

    Hi,

    Thank you for your answer! I’m adding the pictures from WP classic editor.
    Here is one example:
    http://www.foxyforever.com/home2/_seljord/

    Kind regards!
    Y

    #20273
    SeaTheme
    Keymaster
    Purchased

    Thanks!

    Please paste the custom CSS code to “Appearance > Customize: Additional CSS”

    .entry a[rel*="attachment"] {
    pointer-events: none;
    }
    #20274
    yannCMB
    Participant
    Purchased
    Supported

    THANK YOU!!! Works like a charm!!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!