REQUIRED: .wp-caption css class is needed in your theme css.
REQUIRED: .wp-caption-text css class is needed in your theme css.
REQUIRED: .sticky css class is needed in your theme css.
REQUIRED: .screen-reader-text css class is needed in your theme css. See See: the Codex for an example implementation.
REQUIRED: .gallery-caption css class is needed in your theme css.
REQUIRED: .alignright css class is needed in your theme css.
REQUIRED: .alignleft css class is needed in your theme css.
REQUIRED: .aligncenter css class is needed in your theme css.
我在运行主题检查插件时遇到了上述错误,但问题是我在主题中没有使用这些类。我该怎么办?仅仅为了消除错误而使用它们?请引导我。
最合适的回答,由SO网友:Johansson 整理而成
主题检查插件还会检查您的主题,以查找WordPress本身生成的任何默认类。查看codex 了解更多信息。
您所要做的就是在CSS文件中覆盖这些类,例如:
.alignleft {
text-align:left
}
这将从主题检查器插件中删除错误。