WordPress建站教程:如何检测WordPress模板是否遵循最新的标准

我们在使用的时候,经常希望自己的网站与众不同,对于开发者来说,需要创建自己的模板,创建好模板以后,我们想把自己的模板提交到WordPress主题目录,那么我们需要检测自己创建的WordPress模板是否遵循最新的标准。下面我们介绍一下方法:

1. 安装激活 Theme Check 插件
插件下载地址如下:

2. 进入外观 里的 Theme Check,选择自己的模板,点击检测

theme-check

注意:Theme Check插件会提醒您打开wordpress的 debug 模式,具体的操作方法修改wp-config.php 文件开启 WP_Debug:

Crayon-5c891d203095a722441463" class="Crayon-Syntax Crayon-theme-classic Crayon-font-monaco Crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouSEOver" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
Crayon-toolbar" data-settings=" mouSEOver overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">Crayon-title">wp-config.php
Crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
Crayon-button Crayon-nums-button" title="Toggle Line Numbers">
Crayon-button-icon">
Crayon-button Crayon-plain-button" title="Toggle Plain Code">
Crayon-button-icon">
Crayon-button Crayon-wrap-button" title="Toggle Line Wrap">
Crayon-button-icon">
Crayon-button Crayon-expand-button" title="Expand Code">
Crayon-button-icon">
Crayon-button Crayon-copy-button" title="copy">
Crayon-button-icon">
Crayon-button Crayon-popup-button" title="Open Code In New Window">
Crayon-button-icon">
Crayon-language">PHP
Crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
Crayon-plain-wrap">
Crayon-main" style="">Crayon-table">Crayon-row">
Crayon-nums " data-settings="show">
Crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
Crayon-num" data-line="Crayon-5c891d203095a722441463-1">1
Crayon-code">
Crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
Crayon-line" id="Crayon-5c891d203095a722441463-1">Crayon-e">defineCrayon-sy">(Crayon-h"> Crayon-s">'WP_DEBUG'Crayon-sy">,Crayon-h"> Crayon-t">trueCrayon-h"> Crayon-sy">)Crayon-sy">;

相关文章

我们有时候在定制WORDPRESS主题的时候,由于菜单样式的要求我...
很多朋友在做wordpree主题制作的时候会经常遇到一个问题,那...
wordpress后台的模块很多,但并不是每个都经常用到。介绍几段...
从WordPress4.2版本开始,如果我们在MYSQL5.1版本数据中导出...
很多网友会遇到这样一个问题,就是WordPress网站上传图片、附...
对于经常要在文章中出现代码的IT相关博客,安装一个代码高亮...