Remove auto added

from a page that has no literal content (uses shortcodes)

后端 未结 5 719
我在风中等你
我在风中等你 2021-01-05 07:16

I have a WordPress powered website that on the homepage uses a static page with nothing but shortcodes to generate the content.

The page gets these shortcodes by set

5条回答
  •  甜味超标
    2021-01-05 07:32

    jQuery('p:empty').remove();
    

    Also you can use JS. Above code will help you to remove all empty p tag from the page

提交回复
热议问题