
內容簡介
CSS Selectors 外掛可自動為 HTML 中缺少的元素添加 CSS 選擇器,確保每個 DOM 元素都有相應的類名,方便使用者進行自訂樣式設計。
【主要功能】
• 自動為缺少選擇器的元素添加類名
• 類名格式為 css-sel- 開頭
• 無需額外設置,啟用即用
外掛標籤
開發者團隊
原文外掛簡介
It adds CSS selectors in the HTML where there are not.
Sometimes you need some custom CSS and you realise a specific element of the DOM is without any selector.
After activating this plugin you will not have anymore this problem. Every element of the DOM will have a class name that begins with css-sel-.
There are no options, just activate the plugin.
To see if it works, in the frontend right-click with your mouse and click on “Inspect” (usually F12). Then you should not see any more DOM elements without any class.
The only elements that may still miss a CSS class are those ones that are added dynamically through JavaScript. In this last case the plugin can’t do anything, because it works only on the server before sending the page to the browser.
It adds no HTTP requests, and no queries to the database.
Help
If you need help open a thread on the support forum of this plugin.
Please, before posting enable the debugging in wp-config.php. Need a step-by-step guide? Read this detailed tutorial on how to enable debugging in WordPress to learn more.
