承接 wikimedia/wikipediapreview-wordpress 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wikimedia/wikipediapreview-wordpress

最新稳定版本:v1.17.0

Composer 安装命令:

composer require wikimedia/wikipediapreview-wordpress

包简介

WordPress plugin for Wikipedia Preview

README 文档

README

This WordPress plugin is a thin wrapper around Wikipedia Preview to simplify its integration and usage within WordPress. It is available to download as a plugin to your Wordpress site: https://wordpress.org/plugins/wikipedia-preview/ . It provides an interface to add Wikipedia Preview links to your content right from within the Wordpress editor.

Dev local setup

Recommended local set up is to:

  • use Local https://localwp.com/ to create your testing Wordpress site
  • git clone this repo into the following path of your Local Sites directory: /Users/username/Local Sites/sitename/app/public/wp-content/plugins/
  • and then run the following npm commands from cloned directory.
$ `npm install`
$ `npm run build`
$ `npm run start`

This should load all plugin functionality including the Wikipedia Preview code. At this point you should be able to see the plugin in your Wordpress admin dashboard, under the "Plugins" tab. You must activate the plugin from here to be able to see it in your site.

Plugin usage

Adding custom CSS

You can tweak the styling in your site directly from your Wordpress admin dashboard: go to “Appearance / customize”, then select the “Additional CSS” option from the left side menu. In the text box, the following CSS should reset the existing term style so you can adjust it to your liking.

.wmf-wp-with-preview {
    border: 0;
    background-color: unset;
    padding: unset;
}
.wmf-wp-with-preview::after {
    content: '';
}

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 12
  • Forks: 9
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-19