Now depending on which post editor you had use, the HTML codes used to display images that Blogger generate upon uploading is different. We will deal with the old post editor (my preferred post editor) first as it is easier to explain and deal with the new updated post editor later:
CODES FOR THE OLD POST EDITOR:
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioXlMc6BzJzwTN56fw5y3VRHFFdklLXkdgnyvrWftVLuOESvDRTHGKrIfJJ_mnljvQ4ke6J3fpYl5UwWmlVrW0rws36Mr2r4wqnDgjpQdtU8iyMnQ7MBvGR9bbLo_A3mUX8nGLNSXMu6vu/s1600-h/BlogStar.gif"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 178px; height: 67px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioXlMc6BzJzwTN56fw5y3VRHFFdklLXkdgnyvrWftVLuOESvDRTHGKrIfJJ_mnljvQ4ke6J3fpYl5UwWmlVrW0rws36Mr2r4wqnDgjpQdtU8iyMnQ7MBvGR9bbLo_A3mUX8nGLNSXMu6vu/s400/BlogStar.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5373085274943228530" /></a>
Please note that only the code in black is needed to display the image. Those highlighted in red are not needed to display the picture and can be removed safely leaving only
<img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 178px; height: 67px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioXlMc6BzJzwTN56fw5y3VRHFFdklLXkdgnyvrWftVLuOESvDRTHGKrIfJJ_mnljvQ4ke6J3fpYl5UwWmlVrW0rws36Mr2r4wqnDgjpQdtU8iyMnQ7MBvGR9bbLo_A3mUX8nGLNSXMu6vu/s400/BlogStar.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5373085274943228530" />.
Thus to make the image not clickable, all you need to do is just to delete those codes highlighted in red. I have tested that successfully over at Test to make images uploaded via Blogger not clickable.
New post editor
We will now deal with the new post editor which is not my preferred post editor. The codes to display the uploaded image generated by Blogger with the new post editor is as follows, again with the code to display the image in black while the codes in red are to make the image clickable to display an enlarged image. The codes in blue is to center the picture and can either be removed or left in place (note: center will be replaced by left or right if you had elected to float the image to the left or right but that will not affect the explanation to make the image not clickable):
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3OnPziDjzQVAOP55z_PEVu1BPlss0D6WYRDeYqqK5RsrxnqAY0rVMzKVFENEtiBmj8UWkApc-ZJWdT8m98wIEIbF1TfU6HpQY2aFkmtCQdyY097wti3dBd1Oz5oL2UrycgdsnlUu2ydtQ/s1600/BlogStar.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3OnPziDjzQVAOP55z_PEVu1BPlss0D6WYRDeYqqK5RsrxnqAY0rVMzKVFENEtiBmj8UWkApc-ZJWdT8m98wIEIbF1TfU6HpQY2aFkmtCQdyY097wti3dBd1Oz5oL2UrycgdsnlUu2ydtQ/s320/BlogStar.gif" /></a></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3OnPziDjzQVAOP55z_PEVu1BPlss0D6WYRDeYqqK5RsrxnqAY0rVMzKVFENEtiBmj8UWkApc-ZJWdT8m98wIEIbF1TfU6HpQY2aFkmtCQdyY097wti3dBd1Oz5oL2UrycgdsnlUu2ydtQ/s1600/BlogStar.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3OnPziDjzQVAOP55z_PEVu1BPlss0D6WYRDeYqqK5RsrxnqAY0rVMzKVFENEtiBmj8UWkApc-ZJWdT8m98wIEIbF1TfU6HpQY2aFkmtCQdyY097wti3dBd1Oz5oL2UrycgdsnlUu2ydtQ/s320/BlogStar.gif" /></a></div>
Again, only the code in black is needed to display the image while those in red are used to make the image clickable to enlarge the image while those in blue is meant to center the image. Thus if you want the image not clickable, just delete those highlighted in red (<a....> and </a>) and those highlighted in blue too leaving those in black intact and the image will still be displayed. Alternatively we can just delete those codes in red to make the image unclickable while leaving those in blue intact to center (or float) the image.
0 comments:
Post a Comment