如何在 GitHub 中安装 WordPress 组件 jQuery 插件
我是 WordPress 新手,但需要使用它,以便我可以将 jQuery 插件添加到 github 存储库。 WordPress 说明位于 https://github.com/jquery/plugins.jquery.com让初学者感到困惑。
特别是,重定向 WordPress 安装以使用“web-base-template”的说明暗示了我(我是 Windows 用户)。我也对如何“激活plugins-jquery-com主题”感到困惑。
请注意,我确实了解 jQuery 插件站点仍在建设中。
感谢您对这些问题中的任何一个提供帮助。
I am new to WordPress, but need to use it so I can add a jQuery Plug-In to a github repository. The WordPress instructions at https://github.com/jquery/plugins.jquery.com are confusing to a beginner.
In particular, the instructions for Redirecting the WordPress install to use the "web-base-template" allude me (I am a Windows user). I am also confused on how to "Activate the plugins-jquery-com theme".
Please note that I do understand the jQuery Plug-In site is still under construction.
Any help on either of these issues is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
替换
wp-content
他们告诉您删除 WordPress 附带的
wp-content
文件夹并将其替换为自己的文件夹,方法是将wp-content
设为指向web 的符号链接-base-template/wordpress/wp-content
。如果您使用的是 Windows,则没有符号链接。我想知道这是否适用于 Windows,因为看起来jquery/web-base-template
存储库中有符号链接。我建议您尝试设置类似这样的目录结构......然后将
web-base-template/wordpress/wp-content
复制到wordpress/wp-内容
。但是,如果jquery/web-base-template
软件构建为依赖于符号链接之类的东西,我不知道您是否能够让它在 Windows 中工作。您可以尝试复制内容以消除符号链接,例如将web-base-template/themes
复制到wordpress/wp-content/themes
,但我不确定是否可以您将能够维护目录之间必要的关系,以便相对路径继续工作,或者如果其他事情阻止它工作。我想这也会使将来从jquery/web-base-template
存储库更新变得更加困难。激活主题
一旦您按照前面的说明操作,在
WordPress Admin > 中:外观>主题
您可以选择激活plugins-jquery-com
主题,将该主题应用到您的网站。建议
我建议您首先尝试执行标准 WordPress 安装,然后尝试安装并激活 主题,只是为了在尝试遵循plugins.jquery.com 说明之前更加熟悉 WordPress 部分。我认为无论如何这都是一个好主意,但更重要的是因为plugins.jquery.com 的东西不能在标准的WordPress 目录结构中工作。它使用自己的自定义目录结构,并用该自定义结构的链接替换 WordPress 的
wp-content
目录。我知道这不是你的问题,但也许你应该考虑在虚拟机中运行 Linux 安装(例如 Ubuntu)并在那里进行 WordPress 安装。我意识到,除了处理 WordPress 之外,这可能还需要更多额外的工作来完成您真正想做的 jQuery 工作。
Replacing
wp-content
They're telling you to delete the
wp-content
folder that comes with WordPress and replace it with their own, by makingwp-content
a symbolic link toweb-base-template/wordpress/wp-content
. If you're on Windows then you don't have symbolic links. I wonder if this will work at all on Windows, because it looks like there are symbolic links in thejquery/web-base-template
repo. I was going to suggest that you try setting up your directory stucture something like this......then copy
web-base-template/wordpress/wp-content
towordpress/wp-content
. But, if thejquery/web-base-template
software is built to be dependent on things like symbolic links, I don't know if you'll be able to get it to work in Windows. You could try copying things around to eliminate symbolic links, e.g. copyweb-base-template/themes
towordpress/wp-content/themes
, but I'm not sure if you'd be able to maintain the necessary relationships between directories for relative paths to continue to work, or if other things would prevent it from working. I imagine that would also make it harder to be able to update from thejquery/web-base-template
repo in the future.Activating theme
Once you followed their preceeding instructions, in
WordPress Admin > Appearance > Themes
you'd have the option to activate theplugins-jquery-com
theme, to apply the theme to your site.Recommendations
I recommend that you try doing a standard WordPress install first, and also try installing and activating a theme , just to become more familiar with the WordPress part of it before attempting to follow the plugins.jquery.com instructions. I think that would be a good idea anyway, but even more so because the plugins.jquery.com stuff does not work within the standard WordPress directory structure. It's using its own custom directory structure and replacing WordPress's
wp-content
directory with a link into that custom structure.I know it's not your question, but perhaps you should consider running a Linux installation (e.g. Ubuntu) in a virtual machine and do the WordPress installation there. I realize that is probably also more extra work, on top of dealing with WordPress, to accomplish the jQuery work you're really trying to do.
此处提供了在 Githup 中安装 jQuery 插件的步骤
希望这可以帮助您:)
在此步骤中,如果您发现任何错误,请告诉我。
Steps to install jQuery plug-in in Githup are available here
hope this can help you :)
in this steps if you find any error please let me know.