配置服务器设置:
要使用 Ncmaz,建议在您的服务器上运行WordPress 5.8或更高版本、PHP 7或更高版本(WordPress 官方建议使用 PHP 7.4)和MySQL 5.6或更高版本。
- 检查以确保您的虚拟主机具有运行 WordPress 和主题的最低要求。
- 始终确保他们运行的是最新版本的 WordPress。
- 如有必要,您可以从 WordPress 官方网站下载最新版本的WordPress。
- 始终创建安全密码 FTP 和数据库。
通过 WordPress 仪表板安装主题:
为了将主题安装到 WordPress 中,您可以直接通过 WordPress Theme Uploader 上传主题文件。
- 登录您的管理面板并浏览外观 → 主题。
- 点击新增
- 点击上传主题
- 在您的设备上找到ncmaz.zip包,然后单击立即安装按钮。
- 上传完成后,单击激活。
安装默认插件:
Ncmac包含一些必须安装和激活的插件。下载并安装主题后,请安装并激活ncmaz-demo-importer插件(当您从 Themeforest 下载文件时,该插件已附加到主题)。然后,您的网站将自动重定向到插件页面(已在此主题中重新打包)以帮助您安装所需的所有默认插件。
更改存档页面上的默认背景图像:
1、更改分类页面默认背景图片:
.nc-PageArchive > .w-full.px-2.xl\:max-w-screen-2xl.mx-auto > .rounded-3xl.relative.aspect-w-16.aspect-h-12 > .nc-NcImage {
background-image: url('YourImageUrl');
background-size: cover;
}
.nc-PageArchive > .w-full.px-2.xl\:max-w-screen-2xl.mx-auto > .rounded-3xl.relative.aspect-w-16.aspect-h-12 > .nc-NcImage img {
display: none;
}
2、修改作者页面默认背景图片:
.nc-PageArchiveAuthor > .w-screen.px-2.max-w-full.\32 xl\:max-w-screen-2xl.mx-auto > .rounded-3xl.relative.aspect-w-16.aspect-h-12 > .nc-NcImage {
background-image: url('YourImageUrl');
background-size: cover;
}
.nc-PageArchiveAuthor > .w-screen.px-2.max-w-full.\32 xl\:max-w-screen-2xl.mx-auto > .rounded-3xl.relative.aspect-w-16.aspect-h-12 > .nc-NcImage img {
display: none;
}
标题自定义 CSS:
1、Header Nav padding
.nc-MainNav1 {
padding-top: 20px;
padding-bottom: 20px;
}
/* Change 20px with number you want */
2、页眉标志尺寸:
.site-logo img {
max-width: 90px;
max-height: 50px;
}
/* Change 90px and 50px with number you want */
3、隐藏登录按钮:
.nc-MainNav1 div[data-ncmaz-open-modal="ncmaz-modal-form-sign-in"]{
display: none;
}
自定义 CSS:
更改首页BG:
.nc-BgGlassmorphism .bg-\[\#ef233c\] {
background-color: yourcolorhex !important;
}
.nc-BgGlassmorphism .bg-\[\#04868b\] {
background-color: yourcolorhex !important;
}
隐藏喜欢按钮和评论按钮:
.nc-PostCardLikeAndComment {
display: none !important;
}
隐藏喜欢按钮:
.ncmaz-button-like-post {
display: none !important;
}
在移动模式下查看时缩略图模糊:
- 安装并主动使用 Regenerate Thumbnails插件
- 导航到设置 -> 媒体。
- 中等大小更改:最大宽度为500像素(或更大),最大高度为500 像素(或更大)。
- 单击保存。
- 安装和激活插件重新生成缩略图
- 导航工具 -> 重新生成缩略图并单击为所有附件重新生成缩略图
原文链接:https://www.hwfans.cn/1197.html,转载请注明出处。
本站解压密码默认为:www.hwfans.cn