微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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">;

原文地址:https://www.jb51.cc/wordpress/238464.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐