mabujo/featured-image-sharpen-up

安装: 15

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:wordpress-plugin

1.0.1 2016-01-07 11:35 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:36:55 UTC


README

“特色图像锐化提升”会创建您特色文章图像的缩略版本,并将其放置在页面头部。当您向下滚动页面时,一些JavaScript会在后台懒加载特色图像,并在全尺寸图像加载时替换缩略图像。

您可能已经在medium.com上看到过类似的效果。

在WordPress 4.4上创建,但应该适用于更早的版本。已测试在所有Twenty Sixteen、Twenty Fifteen、Twenty Fourteen、Twenty Thirteen、Twenty Twelve和Twenty Eleven主题上正常工作。应该适用于其他主题,但可能需要根据主题处理特色图像的方式调整CSS。

使用jQuery.Lazy(); (http://jquery.eisbehr.de/lazy/) 和 Hugh Lashbrooke的插件模板 (https://github.com/hlashbrooke/WordPress-Plugin-Template)

插件页面:Featured Image Sharpen Up插件 @ mabujo

安装

您可以通过在WordPress仪表板中的“插件 > 添加新插件”屏幕中搜索“Featured Image Sharpen Up”,或者按照以下步骤安装“Featured Image Sharpen Up”插件。

  1. 通过WordPress.org下载插件
  2. 通过WordPress仪表板中的“插件 > 添加新插件 > 上传”屏幕上传ZIP文件
  3. 通过WordPress中的“插件”菜单激活插件

您也可以从GitHub下载:[https://github.com/mabujo/featured-image-sharpen-up/archive/master.zip](https://github.com/mabujo/featured-image-sharpen-up/archive/master.zip) 或composer。