WordPress.org

Ready to get started?Download WordPress

Forums

Add Linked Images To Gallery
Blogger: Prevent imported images from linking back (1 post)

  1. nothin7
    Member
    Posted 1 year ago #

    I noticed that when you import Blogger posts into WordPress, the posts images are surrounded by anchor tags. So, after running this plugin, the images are stored locally, but clicking on them still takes you back to Blogger. Verry annoying. Fortunately, I devised this quick and easy solution, which you can place in the <head> of your template header.php file:

    <script type="text/javascript">
    	$(document).ready(function() {
    		$('a:has(img[id*="BLOGGER"])').removeAttr("href");
    		$('a:has(img[id*="BLOGGER"])').css("cursor", "default");
    		$('img[id*="BLOGGER"]').css("cursor", "default");
    	});
    </script>

    Hope this helps! Let me know if you found any other solutions.

    http://wordpress.org/extend/plugins/add-linked-images-to-gallery-v01/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic