Linux 软件免费装

Archive Title

开发者 webmandesign
更新时间 2024年10月4日 02:46

标签

tag taxonomy a11y title author custom post type category accessible accessibility ready post type archive term webman

下载

1.0.2 1.0.1 1.0.0

详情介绍:

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 Additional Resources

安装:

  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.

屏幕截图:

  • After we apply plugin options, the archive page title labels are gone.

升级注意事项:

1.0.0 This is initial plugin release.

常见问题:

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.

更新日志:

Please see the changelog.md file for details.