Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个名为“widget context”的插件,当它们在小部件管理菜单中展开时,它会在小部件下方显示 html 代码。
我想做同样的事情,但只显示在特定的小部件下。
这不是一件容易的事。
我在这里给出的答案与我在 WordPress StackExchange中给出的类似 Q的答案完全相同。
我知道插件 Widget Logic 正是这样做的。 剖析其代码,下面的摘录将在所有小部件中输出一个文本区域。
*在选定的小部件上显示框会使任务更加困难......