本文环境 PHP7.3,WordPress6.0 不懂的可以评论 著作权归OwenZhang所有。商业转载请联系OwenZhang获得授权,非商业转载请注明出处。
body{
color:#3a3b3c
}
#sidebar-actions-header.side-bar-icon {
display: none;
left: 5px;
}
#aside-nav-wrapper .my-photo{
background: none;
padding:0px;
}
#primary #post-2 {
background: none !important;
}
.post-meta-wrap .post-meta .post-by{
display:none !important;
}
.form-allowed-tags div.text-wrp{
display:none !important;
}
#colophon.site-footer .dev_info{
display:none !important;
}
#block-16{
padding-bottom:0 !important;
}
#wpsvcattribution{
display:none !important;
}
.content-post-wrap .post .post-meta li {
display: inline-block;
font-size: 14px;
margin-right: 18px;
padding-right: 19px;
font-family: var(--heading-font);
letter-spacing: 2px;
position: relative;
}
#to_top_scrollup{
color: #1ed373;
}
location /
{
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
select * from wp_posts where post_type = 'attachment';
SELECT * FROM `wp_postmeta`
WHERE meta_key IN (
'_wp_attached_file',
'_wp_attachment_backup_sizes',
'_wp_attachment_metadata',
'_thumbnail_id'
)
在wordpress源码文件夹,找到你当前使用的模板文件夹,默认在wordpress\wp-content\themes下面。选择模板文件夹进入。
进入模板文件夹后选择header.PHP用记事本打开。
在<head></head>标签之间插入如下代码:
<link rel=”shortcut icon” type=”image/x-icon” href=”favicon.ico” />
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。