[wordpress插件] Announcement Bar公告栏

wordpress 插件 文章 2020-02-18 20:30 553 0 全屏看文

AI助手支持GPT4.0

评分
20
描述

This plugin adds a jQuery file that will position a fixed bar at the top of your browser screen to show announcements (controlled by a custom post type [CPT]) on each page load.

此插件添加了一个jQuery文件,该文件将在浏览器屏幕顶部放置一个固定的栏,以在每次加载页面时显示公告(由自定义帖子类型[CPT]控制)。

Built with simple HTML and javascript.

内置了简单的HTML和javascript。

Upon installation, you can choose the prefix for your post type.

在安装时,您可以选择帖子类型的前缀。

Be sure to choose wisely, because once you publish your first post this can’t be changed.

请务必明智地选择,因为发布第一篇文章后就无法更改。

If you are having problems with redirects visit your permalinks page to flush your rewrite rules by visiting your permalinks settings page (no save needed).

如果您在重定向方面遇到问题,请访问您的永久链接页,通过访问永久链接设置页刷新您的重写规则(无需保存)。

New: A cookie is added and deleted when you toggle the bar open and closed.

新建:当您切换打开和关闭栏时,将添加和删除Cookie。

Depending on the position of the bar when you leave the page is where it will be when you re-visit the site.

离开页面时,取决于栏的位置是重新访问该站点时的位置。

For question please visit my blog @ http://austin.passy.co<

如有疑问,请访问我的博客@ http://austin.passy.co <

/a>

/ a>

The Link

链接

Please be aware when publishing a post, as of right now, you have to fill in the content with non-html text and add a link into the link field.

请注意,发布帖子时(截至目前),您必须使用非HTML文本填写内容,并将链接添加到链接字段中。

This link is really the permalink and is what gets counted when clicked on.

该链接实际上是固定链接,是单击时计算的内容。

It will also revert to the home page if missing, and not count against the counter.

如果丢失,它将也返回到主页,并且不计入计数器。

If you’re getting 404 issues when visiting the permalink page, please refer to the FAQ section.

如果访问永久链接页面时遇到404问题,请参阅“常见问题”部分。

Future Releases

未来版本

This plugin is brand new and has some future planes.

此插件是全新的,并且有一些未来的飞机。

    1. Saved bar position with cookie settings.
    2. 使用cookie设置保存的栏位置。

    3. Post and page per post ID.
    4. 每个帖子ID的帖子和页面。

    5. Per post on/off toggle.
    6. 每个帖子的开/关切换。

    7. ….
    8. ....

安装步骤

Follow the steps below to install the plugin.

请按照以下步骤安装插件。

    1. Upload the announcement-bar directory to the /wp-content/plugins/ directory.

    2. announcement-bar 目录上传到/ wp-content / plugins /目录。

      OR click add new plugin in your WordPress admin.

    3. 或单击WordPress管理员中的添加新插件。

    4. Activate the plugin through the ‘Plugins’ menu in WordPress.
    5. 通过WordPress中的“插件”菜单激活插件。

    6. Go to Announcement Bar settings to edit your settings.
    7. 转到公告栏设置以编辑设置。

下载地址
https://downloads.wordpress.org/plugin/announcement-bar.zip
-EOF-

AI助手支持GPT4.0