Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Show Live Preview of Links in WordPress

Have you ever seen sites that show a live preview of links when you bring your mouse over them? That’s by using a jQuery popup which displays a screenshot of a linked page when users bring their mouse over the link. In this article we will show you how to show live preview of links in WordPress.

Live preview link example

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

First thing you need to do is install and activate the WP Live Preview Links plugin. Upon activation, a new menu item labeled Live Preview Links will appear in your WordPress admin bar. Clicking on it will take you to the plugin’s settings page.

Live preview links settings

Using this plugin, you can have live previews for external, internal, all, or selective links. Depending on what you are trying to achieve, many sites use live previews for external sites. Some eCommerce sites use live previews to show a peek into product pages. Keep in mind that too many live previews can be very distracting and annoying for your users.

Choosing class="wp-live-preview" will allow you to manually display live previews for links as you add them. Simply add the class to your links like this:

<a href="http://www.example.com" class="wp-live-preview">Example Link</a>

Among other settings, you can choose the size of live preview popup window, position, and the site viewport of the link previewed. The default settings would work for most sites. Simply click on the save changes button to store your settings.

You can now visit your website to see the live preview for links in action.

We hope this article helped you learn how to show live preview of links in WordPress. You may also want to take a look at our guide on how to fix broken links in WordPress with broken link checker.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

8 CommentsLeave a Reply

  1. Thanks for the article, that plugin has ceased operation and is no longer downloadable, if you had a new suggestion that works I’d greatly appreciate it. The RT Media paid version isn’t up to scratch and there’s not a lot to be found via Google.

  2. Hi,

    Is there an update of this function nowadays? I’m trying it on external links at. Does someone could help me with that?

    thank you

    • Hi, I’m the plugin author.

      You can get this to work on specific links by adding class=”wp-live-preview” to the link, and in the settings page set ‘Live Preview Links’ to ‘class=”wp-live-preview’. See the demo links on my site.

Leave a Reply to WPBeginner Staff Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.