|
|
I've prepared more than one code, as it is impossible to have one global code that works for all templates. If it doesn't work on your template, leave a comment and I'll prepare one that will work for you.
If you're using the old layout, go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
If you're using the new layout, go to Dashboard ('House' symbol) - Template - Customize - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
That will be all folks. Enjoy!
If you're using the old layout, go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
If you're using the new layout, go to Dashboard ('House' symbol) - Template - Customize - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
.post img, .post img a{ position: relative; z-index: -100; }OR
.post img, .post img a{ position: relative; z-index: -1; } .post-outer{ position: relative; z-index: 1 !important; }OR
.entry{ position: relative; z-index: 1; } .hentry img, .separator{ position: relative; z-index: -1; }OR
.post{ position: relative !important; z-index: 10 !important; } .hentry img, .separator{ position: relative !important; z-index: -1 !important; }
That will be all folks. Enjoy!
thanks for this trick. very usefull
ReplyDeleteya nice one man
ReplyDeletecan you apost an article for how to add meta keywords and description for each post in blogger
smahkin.blogspot.com
can you tell me how to add adsense code in centre of each post plz
ReplyDeletesmahkin.blogspot.com
Hello 'YogaBoy'
ReplyDeleteI'm Melvin
Over From TheEmoLab
Maybe you can find a solution for my template.
Thanks in Advanced
- TheEmoLab Team
- http://www.theemolab.com/
- Nice Site!!
@Retnet: You're welcome. And enjoy your stay here.
ReplyDelete@Shree: There are plenty of tutorials about adding keywords and description in Google. I try not to re-create something that is readily available. If you need help finding them, contact me, and I'll point you to the right direction. As for the AdSense, do you wanna center your ads? If yes, check out this post.
@Melvin: Here's the code for your template :)
.entry{
position: relative;
z-index: 1;
}
.hentry img, .separator{
position: relative;
z-index: -1;
}
Cheers.
hi
ReplyDeleteits not working on my blog with both of them.
when i add it in the css section, all the images disappear, it will be great if u will take a look
its on
www.iBake.co.il
thanks
shimon
@Shimon:
ReplyDeleteThe second code works in your blog. Try again. I just did.
.post img, .post img a{
position: relative;
z-index: -1;
}
.post-outer{
position: relative;
z-index: 1 !important;
}
Hi YoboY,
ReplyDeletein Blogger Travel-Layout this code works fine:
.post img, .post img a{
position: relative;
z-index: -1;
}
.post-outer{
position: relative;
z-index: 1 !important;
}
But _only_ in OSX - in W7 with IE9 it work's not, look at here:
http://goo.gl/voOJR
Any idee how to fix it?
Thanks for Help! Greetings
@oliver: Nice find. The problem is because IE's 'advanced' renderers could not render the CSS above correctly. Right now I can't think of a workaround, but I'll update this page should I find any. Cheers.
ReplyDeleteOkay, I've bookmarked your Blog, great Blog! God bless you, Oliver
ReplyDelete@Oliver: Nice to know. Enjoy your stay here. Cheers and God bless.
ReplyDeleteHi Oliver,
ReplyDeleteI'm having the same problem as shimon
When I add the codes above in the css section, either all the images disappear or the links remain.
Be grateful if you could take a look.
Cheers
Sola Ratione
@Sola: Use this for your blog:
ReplyDelete.post{
position: relative !important;
z-index: 10 !important;
}
.hentry img, .separator{
position: relative !important;
z-index: -1 !important;
}
Cheers.
Many thanks YoboY. Really appreciate your help.
ReplyDeleteJust one issue, though. It has worked for many of the pictures, but not for all of them. e.g. on the post 'The Mind-Body Problem', they are still clickable. And even in the same post, some pics will have the links removed, but others don't? Is there a solution to this?
Thanks again,
Best wishes,
Sola
@Sola: I can see the problem. There are many div tags in your posts, dividing your posts into many sub-sections. Let me explain how the tweak in this tutorial works: I send the images to a layer behind the main text. So, the image is still visible, but it can't be clicked because it is hidden behind your text layer.
ReplyDeleteIn your posts, you've justified your text line by line. As a result, instead of having one huge front layer, your post has many divided layers. These divided layers have gap between them. I know it is hard to imagine. See the screenshot below.
Divided
I can provide one specific code to fix this particular post, but it will be pointless as in another post, the front layer will be divided in a different way. Hence, I think the best solution we have in hand now is to format your post in such a way that the front layer don't get divided that much.
When you edit this post, when you switch over to Edit HTML mode, you'll see many div tags. We need to avoid that. You might be wondering - how did the post get divided by the div tags that much. It is caused by your text align. You seem to have left-aligned, right-aligned and justified your text line by line. If you really can't avoid aligning your text line by line, then I think the best way to remove the hyperlink from your images is to manually remove the links from your images one by one.
Thanks YoboY. That makes sense. The line-by-line text alignment must be caused by the fact that I align the images alternately left and then right. This is a feature I'd prefer to keep, so I guess I will have to manually remove the links as you suggest. Many thanks for your time and assistance. Much appreciated.
ReplyDeleteBest wishes,
Sola
@Sola: You're welcome. Thanks for stopping by. Cheers and God bless.
ReplyDeleteHi YoboY
ReplyDeleteI am big fan, I am not able to remove the link, I am using dynamic views, do you think that's why?
thanks
this doesn't work for me :(
ReplyDelete@Omar: It won't work in Dynamic Views.
ReplyDelete@UYA: Let's have a look shall we? What's your blog's address?
Hi,
ReplyDeleteI am interested in having you help me disable the left click on my blog for photos. My blog is private...would you mind giving me your email so I can add you to help me figure out how?
Hi Ted/Breauna,
DeleteSend me a dummy email using the contact form. I shall reply you.
Cheers.
Ok, I think I did it right...im not sure? I am not very computer savvy so you will have to let me know. Thanks.
ReplyDeleteTed, I'm afraid I didn't receive any email from you. Here's my email: yoboy7@gmail.com
DeleteNice tip actually i was searching for this but here a new problem after doing this we loose title tags from the images. Any Solution.
ReplyDeleteHi Navneet,
DeleteBy 'title tag', were you referring to the alt text that pops up when you hover over your images? If yes, I'm afraid your alt text will be hidden when this tweak is in place. But the bright side is, your images will not get stolen. Some websites uses Javascript to disable rightclick to prevent images from being stolen. But one can easily disable javascript. But by z-indexing your image, one would require developer's tools and some CSS knowledge to steal images.
This comment has been removed by the author.
ReplyDeleteHi Arabedia,
DeleteSorry for the late reply. If the code above isn't work for you, then you have to delink your images manually. You can do this by editting your posts that have these images (one post at a time), select the image (by clicking once in your Blogger post editor), then click on the 'Link' icon..
BTW, what is W.E.?
Hi! I tried all the codes (including the ones you posted on the comments), but my images either go blank or the links remain. I also tried removing the images link directly before, and it doesnt work!! I also tried removing the from the post html, and it also failed :(
ReplyDeleteAny suggestions?
Ho Sofia,
DeleteIt appears like the posts are two segmented for the tweak above to work. Have you tried removing the hyperlink manually, by editing the post - switch to Compose mode (as opposed to the HTML mode) - click on the icon that says 'Link' (make sure it is disabled)?
Hi Yoga!
ReplyDeleteI use Magazine view and the last set of code worked fine on the post page. Main page still shows all links though. Not an issue for me - quite happy that it works on the post page. Just checking if that's the best I can do for now? Thank you!
Hi MomWith aDot,
DeleteThe tweak above wasn't meant for Dynamic View templates. I can't quite find a fitting solution for the DV templates - but then again, you can't entirely protect your contents these days. There are always (easy) ways to go beyond these little protections that we put in place to make these contents accessible.
This is what I've been looking for but it also disables links that are in the post as well. Is there a way for just the pictures?
ReplyDeleteIt shouldn't be disabling your text link. Can I have a look at one of your posts in which this is happening?
DeleteHello. Thank you for this. :)
ReplyDeleteMost welcome :)
DeleteHey, how do I remove this code? I've had it on my blog for a few weeks and it seems to be disabling all links on my blog. My blog is elegant-chaos.blogspot.com if you want to take a look.
ReplyDeleteLindsey
Hi Lindsey,
DeleteYour links are working fine for me. Anyways, to remove the code, go to your Add CSS, and remove these lines:
.post{
position: relative !important;
z-index: 10 !important;
}
.hentry img, .separator{
position: relative !important;
z-index: -1 !important;
}
And it seems like you've added multiple copies of the same code. Get rid of all of them.
Ok I got it to work before without disabling my links. I had to redo my blog and tried to re add it and now none of the code ahead work. www.tanishalynne.com
ReplyDeleteHi Tanisha,
DeleteThe tweak works best with Blogger's default templates. I've tried to see if there is a workaround for your current template, but I'm having a tough time finding one.
Great, thanks! Very simple and does the job perfectly! :)
ReplyDeleteHello Admin,
ReplyDeleteYour third code works best for me but i just want little modification in your code that is i just want to remove the hyperlinks from my post images but i also want when some one click on my image it should have a option of "Copy Image URL/Option" so that if someone wants to copy the URL of my Image it can be easily for them. Can you give me that code? Thanks
Hi Zohaib,
DeleteThat cannot be easily done. The only way you can go forward with this is by editing your post's HTML, look for the HTML that makes up your image, and remove the href="http....." part. You need to do this one by one for all your images, unless if you can find someone to make a Javascript equivalent code for this (which I'm sure can be done)..
Hello Yoga,
DeleteThanks for your prompt response. Let me give you a example from my test weblog, from my below test weblog you will find a image which has no hyperlinks placed on it and we can still save that image and move that image towards addressbar for opening in a new tab/window, while implementing of your above code disables all other options like Saving Image, Copying Image URL or Moving Image to Addressbar but i just want to disable the left click hyperlinks on image. So tell me if its possible for you to create a CSS Code or Script for that purpose?? Thanks
My Test Blog URL: http://insure-phobua.blogspot.com/2012/01/fgfgfgfgfgfgfgfg.html
That's what I'm trying to tell you. This cannot be done with CSS. You need to either manually edit your image's HTML, or someone has to come up with a tricky script for it. I'm afraid it cannot be easily done.
DeleteWhy are some images in this post still clickable?
ReplyDeletehttp://clay-talk.blogspot.com/2013/11/ohnoyoudidnt.html
I can't seem to load your blog. Everything okay?
DeleteThanks yoboy for your tips,but if you want visitor to right click, you have to add some code to body tag.
ReplyDeletethe last code worked on my blog,
ReplyDeletenow i got a problem,
there one download image buttom in my blog
the download buttom hyperlink was not horking any soulution for that download buttom.
Hi Simon,
DeleteWhat's your blog's address?
All these dont work for me...
ReplyDeleteinakiluengo.blogspot.com
id appreciate if you could help,thanks!
Hello Inaki,
DeleteI'm afraid the tweak above is not meant for Dynamic templates.
Hello!
ReplyDeleteThe code is only working for one image of the post. I dont understand why. Can you help me?
Link post: http://poliminimalista.blogspot.pt/2014/12/kiko-universal-fit-foundation-review.html
Thanks
Hello Joana,
DeleteThis tweak is meant for the default template - and it's a big hit-and-miss. This is no longer a good way to remove hyperlinks.
Changing the css in the template is an excellent idea! The fourth piece of code worked for me. Thank you, Yoga!
ReplyDeleteThank u so much!!!!
ReplyDeleteHello Yoga,
ReplyDeletecould you have an eye on my blog http://www.hotnewsblog.net ... none of the possibilites works. thanks a lot. and do you also write partial programs for templates?
thx for your answers!
Hello Wolfgang,
DeleteSee if this works:
.entry{
position: relative;
z-index: 1;
}
.separator img a, .separator img{
position: relative;
z-index: -10;
}
haloo sir nice post i have a question in my blogger there is outgoing link which i dont know where is come from please help me sir i am facing big problem
ReplyDeletehttp://no1worldlifestyle.blogspot.com/
Hello could you describe where exactly you're seeing this link?
DeleteHello admin
ReplyDeleteHow To enable this code just in posts ??
Thanks for answer .
Hello Gab,
DeleteThe codes above are for images from the post - although it really is more of a hit-and-miss depending on the template you're using.
Hi there. The code works great. However, my images that are hyperlinked to a url or site also got disabled making them unclickable anymore. :o
ReplyDeleteSorry for the late reply. All your images within your posts will be unclickable when you put this code on.
DeleteHi Yoga
ReplyDeleteI used all your Codes here to remove link from image. but Number 1+2 are not work with my layout and N.3+4 are hide all my image.
myblog is: stunningcambodia.blogspot.com.
please let me know by email: nochannara@gmail.com.
Thanks.
Hello Nora,
DeleteUnfortunately the method used above is really not the reliable way to prevent clicks on images, and it really does create a hit-and-miss situation (like in your case) :(
Hello,
ReplyDeleteI was looking for a tutorial like this, and it works. But there's a problem: in the home page of my blog the posts become inacessible ('cause it's through the image that it links to the post page).
Hope you can fix this for me. Thank you!
In that case, you may want to use conditional HTML code to tell the CSS to only go active when it is not in your homepage. Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed -
DeleteFind for </b:skin> - Paste the following directly below </b:skin> (don't forget to insert one of the CSS that worked for you in the code below. I kept it empty as I didn't know which code worked for you).
<b:if cond='data:blog.url != data:blog.homepageUrl'>
<style>
YOUR_CSS_HERE
</style>
</b:if>
This is awesome tutorial, I did for my blog here. thanks for you sharing us. Blog Supporter.
ReplyDeleteHi help! its working but my img hover animation stopped after using this.
ReplyDeletethanks for your codes. the 3rd and 4th ones work okay for my blog except the photos with captions, which will still be clickable.
ReplyDeletecan you check it for me? thanks in advance!
my blog: euvin01.blogspot.com