WordPress 中的手风琴常见问题解答
我想在 WordPress 中制作一个简单的可折叠常见问题解答。有一些手风琴菜单插件提供了比我需要的更多的功能。但我无法使用 Simple Content Reveal 插件让事情看起来正确。
我准备好第一次尝试编写自己的 jquery 代码。我需要分步说明,或相同的链接。
我需要一种简化的方式来创建常见问题解答的标记。创建标记的低效方法的示例:
id="id1" 等
id="id2" 等
(取自简单内容显示的标记)
换句话说,我希望能够从一堆记事本中的问题和答案可折叠常见问题解答的标记,无需太多繁琐的复制和粘贴操作。
谢谢!
I would like to make a simple collapsible faq in wordpress. There are accordion menu plugins out there that offer way more features than I need. But I'm having trouble getting things to look right with the Simple Content Reveal plugin.
I'm ready to try writing my own jquery code for the first time. I will need step by step instructions, or a link to same.
I will need a streamlined way of creating the markup for the faq. An example of an inefficient way of creating the markup:
id="id1" etc.
id="id2" etc.
(taken from the markup for Simple Content Reveal)
In other words, I want to be able to go from a bunch of questions and answers in notepad to the markup for the collapsible faq without too much fussy copy and paste fiddling.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您见过JQuery 框架中的手风琴吗?它很容易使用,应该能满足您的需要。
Have you seen the accoridian in the JQuery framework? It's easy to use and should give you want you need.
查看 https://oraguide.com - 这是一个类似的概念,但一切都在云中简化/托管。它作为浮动 div 直接在页面上运行。
Check out https://oraguide.com - It's a similar concept but everything is streamlined / hosted in the cloud. It runs directly on the page as a floating div.