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.
我正在使用Divi 手风琴模块。Divi 允许我选择每个项目的标题将显示为哪个标题级别(1 到 6)。但是,我希望将每个项目的标题显示为段落文本(即p标签)而不是标题(即h1,...,h6)。这可能吗?
p
h1
h6
没有默认的方法可以做到这一点。这是一个使用 jQuery 的解决方法。
jQuery('.et_pb_toggle_title').each(function(i, obj) { const text = jQuery(this).text(); jQuery(this).after('<p class="et_pb_toggle_title">'+text+'</p>'); jQuery(this).remove(); });