內容簡介
這個外掛鼓勵 WordPress 編輯人員使用正確的標題以符合無障礙性與 SEO 標準。 WordPress 的所見即所得編輯器預設隱藏標題標籤,並且在非「所見即所得」的文字編輯畫面中沒有任何標題標籤按鈕。
編輯人員通常會將標題變粗體,而非使用正確的標題標籤。但使用正確的(巢狀)標題對於無障礙性與 SEO 非常重要。
這個外掛會在 WordPress 的所見即所得編輯器的第一列新增格式選單,其中包含標題標籤,並同時加入標題標籤至文字編輯器中。
無障礙性
[Section 508](<a href=”http://squizlabs.github.io/HTML_CodeSniffer/Standards/Section508/) 規定你的最大標題必須是 <h1>,接著是另一個 <h1> 或更低等級的標題元素(如 h2 到 h6)。標題的結構應該反映文件的結構。因此,標題結構應該是邏輯上巢狀的。螢幕閱讀器會讀取這個語義化的標題結構以建構目錄。螢幕閱讀器不會使用任何格式化風格。視覺閱讀者會使用格式化風格,而非語義結構。此外,請參閱: http://accessibility.psu.edu/headings 。
SEO
當使用 HTML 標籤來設置標題的重要性時,您實際上讓搜尋引擎機器人更容易確定您的網頁概念。搜尋引擎無需猜測,它可以清楚地看到您的主要主題,以及在適當的關鍵字下定位您,以便潛在客戶可以在網際網路上找到您。
Nov 18 '11,Rupesh Pawar
另請參閱:網誌的標題結構
貢獻!
如果您對新功能或改進有任何建議,請隨時在 Twitter 上聯繫我們。或者,您也可以從 Github 上派生插件。
需求
經過測試與 WordPress >= 3.6 。
支援
我們很樂意為您提供幫助。如果您對這個程式碼有任何疑問,請 給我們發訊息,或者通過 Twitter @JamedoWebsites 聯繫我們。
外掛標籤
開發者團隊
原文外掛簡介
This plugin stimulates WordPress editors to use correct headings for accessibility and seo. The heading tags are on the second row and hidden in the WYSIWYG editor in WordPress by default. The (non visual) text edit screen has no heading tag buttons at all.
Editors will make heading bold instead of using the correct heading while the use of correct (nested) heading is important for accessibility and seo.
This plugin add the format menu with heading tags in the first row of the WYSIWYG editor and add heading tags to the text editor.
Accessibility
[Section 508]( followed by an other
or a subordinate heading element (h2 to h6). The structure of the headers should reflex the structure of your document. So the heading structure should be logically nested. Screen readers read this semantic heading structure to construct a table of contents. Screen readers don’t use any formatted style. Visual readers use the formatted style in stead of the semantic structure. See also: http://accessibility.psu.edu/headings.
SEO
When the importance of a heading is established with HTML tags, you’re actually making it easy for the search engine robots to determine what your web page is all about. The search engine doesn’t have to guess at it. It can see exactly what your main topic is and place you under the appropriate keywords so your potential customers will be able to find you on the WWW.
Nov 18 ’11, Rupesh Pawar
Also read: The heading structure for your blog
Contribute!
If you have suggestions for a new feature or improvement, feel free to contact us on Twitter. Alternatively, you can fork the plugin from Github.
Requirements
WordPress tested with >= 3.6
Support
We are always happy to help you. If you have any question regarding this code. Send us a message or contact us on twitter @JamedoWebsites.
