• Resolved sysodmin

    (@sysodmin)


    Hello. Sorry for my bad english. I’m not english man πŸ™‚ I need to make that when adding an image to a post, it is a tag that will contain a link to that image. Like <a href=""><img src=""></a> How to do it? Because now it’s just <img src="http://localhost/wordpress/wp-content/uploads/2018/02/depp-267x300.png" alt="" width="267" height="300" class="alignnone size-medium wp-image-108" /> Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi
    When you select an image in the Media Gallery you can add a link before you insert it onto a page.

    Just futher up from the ‘Insert onto a page’ button under Attachment Display settings it says ‘Link To’ change it to Custom URL then add the web address.

    Colin

    Thread Starter sysodmin

    (@sysodmin)

    Hello, Colin
    I know about that πŸ™‚ But thank you
    I thought there might be some way to do this automatically.

    Thread Starter sysodmin

    (@sysodmin)

    Sorry, man πŸ™‚
    I thought about another.
    I did it, it’s great, thanks man)
    Good luck

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘a href on image’ is closed to new replies.