這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Archive Title

外掛說明

This plugin provides options to tweak an archive page title, such as removing annoying archive label (see FAQ). You can remove the label for any archive page completely, or just hide it accessibly.

Features

  • Modifying category, tag, author, custom post type and custom taxonomy archive title (no need to modify the date archive title)
  • Removing archive page title label completely
  • Hiding archive page title label accessibly (using a CSS class of screen-reader-text)

Additional Resources

Features

  • Modifying category, tag, author, custom post type and custom taxonomy archive title (no need to modify the date archive title)
  • Removing archive page title label completely
  • Hiding archive page title label accessibly (using a CSS class of screen-reader-text)

Additional Resources

螢幕擷圖

  • Default WordPress archive page titles, before plugin options are applied.
  • After we apply plugin options, the archive page title labels are gone.1. Default WordPress archive page titles, before plugin options are applied.

安裝方式

  1. Unzip the plugin download file and upload archive-title folder into the /wp-content/plugins/ directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Navigate to Settings → Reading to edit plugin options under “Archive Title Options” section.1. Unzip the plugin download file and upload archive-title folder into the /wp-content/plugins/ directory.
  4. Activate the plugin through the “Plugins” menu in WordPress.
  5. Navigate to Settings → Reading to edit plugin options under “Archive Title Options” section.

常見問題集

What is an archive page?

Archive page contains an archive – a list of posts or custom post types. WordPress recognizes 6 types of archives: category, tag, author, custom post type, custom taxonomy and date.

What is an archive label?

Title of every archive page contains an ‘archive label’ (please note this is a terminology used in this plugin). By default it is the first text in archive title followed with colon. For example, a category archive page with title of “Category: Uncategorized” has an archive label of “Category:”.

Where can I find the plugin settings page?

This plugin integrates its settings directly into Settings → Reading WordPress admin page. You can edit plugin options under “Archive Title Options” section on that page.

What does it mean “hiding label accessibly”?

The plugin allows you to remove the archive title label completely or to hide it accessibly. Accessible hiding causes wrapping the archive title label in a <span class="screen-reader-text"> HTML element.

Every WordPress theme should provide styles for the screen-reader-text CSS class. And every text wrapped in such CSS class element will be hidden from visibility, but will be still accessible for assistive devices, such as screen reader.

We recommend using this option instead of removing the label completely.

My theme uses a different CSS class to hide elements accessibly. Can I change it?

Yes you can.

You can override the CSS class by defining the ARCHIVE_TITLE_CSS_CLASS_A11Y constant in your child theme’s functions.php like so:

define( 'ARCHIVE_TITLE_CSS_CLASS_A11Y', 'your-theme-accessibly-hidden-class' );

Can I change the archive title label instead of removing it?

Well, the only 2 use cases I can think of for this option would be:

  • To change the taxonomy name: For example, if you would like to keep the category archive title label such as “Category:” in “Category: Uncategorized”, but only want to change the “Category” text to “Topic”. For that case it’s much better to properly rename the taxonomy using a dedicated plugin. You can use this for any WordPress native taxonomy, such as Category, Tag, or any other custom taxonomy, such as Jetpack’s Project Types.
  • To change the post type name: For example, if you would like to rename “Archives: Portfolio” to “Archives: Projects” (note that “Archives:” is actually a label here, and you can remove it with this plugin). For that case it’s much better to properly rename the post type using a dedicated plugin.

使用者評論

2021 年 5 月 23 日
As a totally non-techie, I was surprised by the ease of use for this plugin. Simple and effective.
2019 年 7 月 31 日
Great tool and surprisingly uncomplicated, especially after several hours of unsuccessful try-and-error with code snippets to remove the category and archive labels. Thank you very much!
2019 年 6 月 4 日
Was going to edit functions.php but this was much easier and safer. Thank you!
2018 年 11 月 11 日
I needed "Archive:" to disappear in front of the Custom Post Type Archives and it did just that!
閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Archive Title〉的開發相關工作。

參與者

Archive Title 外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Archive Title〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

請參考 changelog.md 以進一步了解詳細資料。