【发布时间】:2017-10-12 13:22:29
【问题描述】:
我需要做一个自定义的 WordPress 编辑产品页面,其中扩展了“最常用的标签”列表。我试图在functions.php 中添加这个admin_head 函数:
jQuery(window).load(function() {
jQuery(".tagcloud-link").attr( "aria-expanded", "true" );
jQuery( ".the-tagcloud" ).show();
});
代码运行,但.the-tagcloud 元素不可见。
有人对此有解决方案吗?
【问题讨论】:
标签: jquery wordpress tags admin tag-cloud