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.

您是否曾经看到过将鼠标悬停在链接上实时显示预览的站点? 这是通过使用jQuery弹出窗口来实现的,该弹出窗口在用户将鼠标移到链接上时显示链接页面的屏幕截图。 在本文中,我们将向您展示如何在WordPress中显示链接的实时预览。

影片教学 (Video Tutorial)

演示地址

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.

您需要做的第一件事是安装并激活WP Live Preview Links插件。 激活后,一个名为“实时预览链接”的新菜单项将出现在WordPress管理栏中。 单击它会将您带到插件的设置页面。

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:

选择class="wp-live-preview"将允许您在添加链接时手动显示其实时预览。 只需将类添加到您的链接中,如下所示:

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

<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.

我们希望本文能帮助您学习如何在WordPress中显示链接的实时预览。 您可能还想看看我们的指南,了解如何使用损坏的链接检查器修复WordPress中的损坏的链接。

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+.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Google+上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-show-live-preview-of-links-in-wordpress/

如何在WordPress中显示链接的实时预览相关推荐

  1. android studio 显示方法列表,有没有办法在Android Studio编辑器中显示RecyclerView内容的预览?...

    Android studio 3.0命名空间启用设计时功能(例如,在片段中显示哪个布局)或编译时行为(例如应用于XML资源的缩小模式)   这是一个非常强大的功能,正在开发并允许您不必每次都编译代码来 ...

  2. wordpress 数据库_如何在WordPress中创建视频库(逐步)

    wordpress 数据库 Recently, a user asked us how to create a video gallery in WordPress. WordPress makes ...

  3. wordpress创建_如何在WordPress中轻松创建工作申请表

    wordpress创建 Do you want to add a job application form to the careers page on your WordPress website? ...

  4. wordpress添加媒体_如何在WordPress中添加新帖子并利用所有功能

    wordpress添加媒体 Are you trying to create a new post in WordPress? Do you want to learn about all the W ...

  5. wordpress创建_如何在WordPress中创建问卷(简易方式)

    wordpress创建 Do you want to create a questionnaire in WordPress to survey your visitors or collect da ...

  6. wordpress模板_如何在WordPress中添加漂亮的电子邮件模板

    wordpress模板 Do you want to change the appearance of emails sent by your WordPress site? By default, ...

  7. wordpress谷歌字体_如何在WordPress中添加Google Maps

    wordpress谷歌字体 You can add all kind of content into your WordPress site. At WPBeginner we have shown ...

  8. wordpress地图_如何在WordPress中嵌入必应地图

    wordpress地图 Do you want to embed Bing Maps on your WordPress website? If you are looking for a Googl ...

  9. Wordpress中显示页面当前位置

    Wordpress中显示页面当前位置 在浏览网站的时候,很多网站都提供了页面定位的功能,一般在文章的上方以这样的形式显示: 首页 >>  分类 >> 子分类 >> ...

最新文章

  1. rxlifecycle 框架的使用
  2. Python报错:PermissionError: [Errno 13] Permission denied 解决方案详解
  3. (38)FPGA面试技能提升篇(C/C++、questasim仿真工具)
  4. mysql server出现_查询各阶段时,一旦mysql server出现各种故障下的表现形式
  5. oracle手动 建库_Oracle Create the Database for 11g(手动创建数据库)
  6. 设置开机不自动进入锁屏状态
  7. 面试必问为什么想做运营?做运营需要具备哪些特质或素质?
  8. 内存数据库FastDB和SQLite性能测评
  9. 植物大战僵尸用户存档修改(单机版)
  10. 浅尝Clickhouse
  11. pyppeteer 模拟登录淘宝H5,获取cookie
  12. 国产示波器采用的ADC芯片
  13. 开学“收心”指南来了
  14. 安卓开发自己写的刻度尺测量,精确到mm.
  15. 为什么要用CAT工具辅助翻译?为什么要用翻译管理系统?以memoQ为例
  16. 开发一款好玩的地图app
  17. 每周——ReID学习
  18. 超实用的音频控制工具:SoundSource for Mac
  19. 2021-12-16 统计学-基于R(第四版)第十章课后习题记录及总结
  20. linux双网卡 ipv4 ipv6 双栈,Linux下IPv4/IPv6双栈接入,使用IPv4连接优先设置教程

热门文章

  1. Bootstrap3基础 btn-xs/sm... 按钮的四种大小
  2. Android实现VR图片、视频小程序
  3. 学之思开源代码学习(1)
  4. 阿里云Android直播demo流程
  5. U-boot下编写代码对SPI flash进行操作
  6. vscode关闭讨厌的单词拼写检查
  7. win7出现问题事件名称APPCRASH的解决方法
  8. C语言做的猜数字小游戏
  9. python实现LZW算法
  10. 兔子繁殖问题(斐波那契数)