Categories

Featured templates

WordPress. How to link a post image to a custom URL

Carey Burns February 23, 2016
Rating: 5.0/5. From 1 vote.
Please wait...

Our Support team is ready to present you a new tutorial that shows how to insert an image to a post content and link it to any custom URL in WordPress.

WordPress. How to link a post image to a custom URL

  1. Navigate to Posts > Add new or open any existing post.

  2. Click on Add media button to add your image:

    wordpress_how_to_link_a_post_image_1
  3. You can select any image from the Media Library or upload a file from your computer.

  4. After selecting the image, see Attachment Display settings. Select Custom url in the Link to drop down and provide your URL in the field below:

    wordpress_how_to_link_a_post_image_2
  5. Click on Insert into post button when you are done.

  6. If you open the post in Text view, you will see the HTML code for the link and image:

    wordpress_how_to_link_a_post_image_3
  7. In case the image was inserted without a link, you can add it manually. Open Page/Post content in Text view and add HTML code for link. You will need to add the following code before the image:

    	 <a href="#">
    	 

    where # is your custom URL, and add the closing tag after the image code:

    	 </a>
    	 
  8. Save changes to post when you are done and check the result on your website.

Feel free to check the detailed video tutorial below:

WordPress. How to link a post image to a custom URL

Wordpress Premium Themes
This entry was posted in WordPress Tutorials and tagged custom, image, link, post, url, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket