我是否应该在自定义WordPress主题中使用div id =”page” class =”site”?

我正在检查一些Wordpress官方主题(即TwentyNineteen和Underscores), 并注意到在正文之后还有一个特定的div:

<div id =” page” class =” site”>

从零开始开发自定义主题时, 我也应该使用此ID和类吗?换句话说, 这些是Wordpress要求和使用的, 还是由这些特定主题任意添加的?


#1


不, 作为主题开发人员, 你应该将它们应用并以CSS样式(对于组合选择器)使用(对于组合选择器), 但这不是” WordPress规则”或类似的东西。

来源:

https://www.srcmini02.com/63896.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41619.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?