{"id":4247,"date":"2012-07-09T06:32:08","date_gmt":"2012-07-09T06:32:08","guid":{"rendered":"http:\/\/2slick.com\/web\/?p=4247"},"modified":"2012-08-17T19:18:04","modified_gmt":"2012-08-17T19:18:04","slug":"how-to-link-a-photo-to-a-website","status":"publish","type":"post","link":"https:\/\/2slick.com\/web\/how-to-link-a-photo-to-a-website\/affordablewebsitestips\/tutorials","title":{"rendered":"How To Link A Photo To A Website"},"content":{"rendered":"<p>How to link a photo to a website so that when a visitor clicks on a particular image, they're taken to another website or web page. This is fairly easy to do using HTML and will work in most blogging programs that allow you to use html. To complete this tutorial you will need to <a title=\"get a url for your iamge\" href=\"http:\/\/2slick.com\/web\/get-a-url-for-a-picture\/affordablewebsitestips\" target=\"_blank\">upload your image to an image hosting website<\/a>. Note the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Uniform_resource_locator\">URL<\/a> the image hosting website gives you for your hosted image. Below are instructions on how to create the HTML snippet and how to apply it to WordPress, Blogger and Tumblr.<\/p>\n<h3>The HTML snippet used to link an image to a website<\/h3>\n<p>Here is the code snippet:<br \/>\n<!--DEVFMTCODE--><pre class=\"devcodeblock\" title=\"Javascript\"><table class=\"devcodetools\"><tbody><tr><td>&nbsp;Javascript&nbsp;|&nbsp;<\/td><td style=\"background-image:url('https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/img\/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;\"\/><embed id=\"ZeroClipboard1\" src=\"https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/_zclipboard.swf\" loop=\"false\" menu=\"false\" quality=\"best\" bgcolor=\"#ffffff\" width=\"16px\" height=\"16px\" align=\"middle\" allowScriptAccess=\"always\" allowFullScreen=\"false\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" flashvars=\"id=1&width=16&height=16\" wmode=\"transparent\" \/><\/td><td>&nbsp;copy&nbsp;code&nbsp;|<\/td><td style=\"cursor:pointer\" title=\"DevFormatter Plugin\" onclick=\"devfmt_credits()\">?<\/td><td width=\"99%\">&nbsp;<\/td><\/tr><\/tbody><\/table><div class=\"devcodeoverflow\"><table class=\"devcodearea\" width=\"100%\"><tr><td class=\"devcodelines\" width=\"1%\">1<\/td><td class=\"devcodelinesarea\"><pre class=\"devcode devcodeline\"><\/pre><\/td><\/tr><tr><td class=\"devcodelines devcodelinesodd devcodelinesodd\" width=\"1%\">2<\/td><td class=\"devcodelinesarea devcodelinesareaodd devcodelinesareaodd\"><pre class=\"devcode devcodeline\"><span style=\"color: #339933;\">&lt;<\/span>a href<span style=\"color: #339933;\">=<\/span><span style=\"color: #3366CC;\">&quot;http:\/\/2slick.com&quot;<\/span> target<span style=\"color: #339933;\">=<\/span><span style=\"color: #3366CC;\">&quot;_blank&quot;<\/span><span style=\"color: #339933;\">&gt;&lt;<\/span>img src<span style=\"color: #339933;\">=<\/span><span style=\"color: #3366CC;\">&quot;http:\/\/2slick.com\/web\/wp-content\/uploads\/2011\/06\/logo3.png&quot;<\/span> alt<span style=\"color: #339933;\">=<\/span><span style=\"color: #3366CC;\">&quot;&quot;<\/span> <span style=\"color: #339933;\">\/&gt;&lt;\/<\/span>a<span style=\"color: #339933;\">&gt;<\/span><\/pre><\/td><\/tr><tr><td class=\"devcodelines\" width=\"1%\">3<\/td><td class=\"devcodelinesarea\"><pre class=\"devcode devcodeline\"><\/pre><\/td><\/tr><\/table><\/div><\/pre><!--END_DEVFMTCODE--><br \/>\nHere is what the code snippet looks like on a web page:<br \/>\n<a href=\"http:\/\/2slick.com\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2011\/06\/logo3.png\" alt=\"\" \/><\/a><br \/>\n<strong>Note:<\/strong> Notice that when you click on the logo image, you are directed to the home page of 2slick.com.<\/p>\n<p>To change the code snippet image, and the web page it redirects you do, you will need to change two things in the snippet. Change the <strong>http:\/\/2slick.com\/web\/wp-content\/uploads\/2011\/06\/logo3.png<\/strong> URL to you image URL. This will replace the 2slick.com logo with your image. Next change the <strong>http:\/\/2slick.com<\/strong> URL to the URL you want visitors to be forwarded to, once they click your image. That's it, your modified code snippet is ready to\u00a0insert\u00a0into any web page that accepts HTML. Save your modified code snippet to a text document like Notepad.<\/p>\n<h3>How to insert HTML into WordPress<\/h3>\n<p>Click on the HTML tab over the content area of any post or page to insert HTML markup.<br \/>\n<a href=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/01\/html_tab_wordpress.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1532\" style=\"border: 1px solid black;\" title=\"html_tab_wordpress\" src=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/01\/html_tab_wordpress.jpg\" alt=\"\" width=\"600\" height=\"600\" srcset=\"https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/01\/html_tab_wordpress.jpg 600w, https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/01\/html_tab_wordpress-150x150.jpg 150w, https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/01\/html_tab_wordpress-300x300.jpg 300w, https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/01\/html_tab_wordpress-36x36.jpg 36w, https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/01\/html_tab_wordpress-90x90.jpg 90w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>How to insert HTML into Blogger<\/h3>\n<p>Click the HTML tab while creating a post. Now you can insert HTML code into the post. Click the 'Compose' tab to view the html as it should display to visitors.<br \/>\n<a href=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/07\/blogger_html1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4256\" style=\"border: 1px solid black;\" title=\"blogger_html\" src=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/07\/blogger_html1.jpg\" alt=\"\" width=\"413\" height=\"383\" srcset=\"https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/07\/blogger_html1.jpg 413w, https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/07\/blogger_html1-300x278.jpg 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/a><\/p>\n<h3>How to insert HTML into Tumblr<\/h3>\n<p>Click the 'Edit HTML source' button and a 'HTML Source Editor' popup window appears. Enter HTML code into the window and click the 'Update' button.<\/p>\n<p><a href=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/07\/tumblr_HTML_editor.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4258\" style=\"border: 1px solid black;\" title=\"tumblr_HTML_editor\" src=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/07\/tumblr_HTML_editor.jpg\" alt=\"\" width=\"423\" height=\"295\" srcset=\"https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/07\/tumblr_HTML_editor.jpg 423w, https:\/\/2slick.com\/web\/wp-content\/uploads\/2012\/07\/tumblr_HTML_editor-300x209.jpg 300w\" sizes=\"auto, (max-width: 423px) 100vw, 423px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to link a photo to a website so that when a visitor clicks on a particular image, they&#8217;re taken to another website or web page. This is fairly easy to do using HTML and will work in most blogging programs that allow you to use html. To complete this tutorial you will need to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5718,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,298,143,4,6],"tags":[374,402,171,168,421,468],"class_list":["post-4247","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-affordablewebsitestips","category-how-to-blog","category-internet-tips","category-tutorials","category-wordpress","tag-blogger","tag-html","tag-image","tag-link","tag-tumblr","tag-wordpres"],"_links":{"self":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/4247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/comments?post=4247"}],"version-history":[{"count":9,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/4247\/revisions"}],"predecessor-version":[{"id":4249,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/4247\/revisions\/4249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/media\/5718"}],"wp:attachment":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/media?parent=4247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/categories?post=4247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/tags?post=4247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}