最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

widgets - How can I remove Wordpress element IDs and Class names in the HTML?

programmeradmin1浏览0评论

Very much following this advice for body class: /

I'd like to remove the IDs and Classes that WP automatically ads to all its elements.

Someone has posted how to do this with menu items: wp_nav_menu remove class and id from li

But I can't figure out a way to do it for say, custom HTML widgets, or text widgets, which produce an ID for each one that is created or added to a site --> it seems unnecessary since other classes control these areas.

Also asked this question about the parent page IDs

Trying to reduce all the added CSS and HTML references to help with site speed...hopefully.

发布评论

评论列表(0)

  1. 暂无评论