在 wordpress 的 Customizr 主题中在哪里编辑页脚文本
Where to Edit Footer Text in Customizr theme on wordpress
请帮助我在何处编辑页脚以删除文本 "Powered by Designed with the Customizr Theme "。
<footer id="footer" class="<?php echo czr_fn__f('tc_footer_classes', '') ?>">
<?php do_action( '__footer' ); // hook of footer widget and colophon?>
</footer>
我尝试在其他 CSS 中添加以下代码。没用。
.czr-credits {
display: none;
}
在您的仪表板中,转到外观 > 自定义 > 高级选项 > 其他 CSS 并输入以下代码:
.czr-credits {
display: none;
}
或者,方法二:
这涉及创建一个子 customizr 主题,该主题基本上覆盖其父样式(也包括页脚)。
- 在子主题中创建
inc
目录
- 将
czr-front-ccat.php
从 /public/wp-content/themes/customizr/inc
复制到此子 inc
目录
- 修改
czr-front-ccat.php
,文件中第 9456 行附近是有问题的函数,将插入 wordpress 和 customizr 引用的两个部分替换为对 apply_filters 函数的简单调用,但 sprintf 不包含字符串。
资源:
https://wordpress.org/support/topic/designed-with-the-customizr-theme/
https://docs.presscustomizr.com/article/35-how-to-customize-the-customizr-wordpress-theme
https://docs.presscustomizr.com/article/24-why-and-how-to-create-a-child-theme-with-wordpress
尝试添加育儿方式
body .czr-credits {
display: none;
}
请帮助我在何处编辑页脚以删除文本 "Powered by Designed with the Customizr Theme "。
<footer id="footer" class="<?php echo czr_fn__f('tc_footer_classes', '') ?>">
<?php do_action( '__footer' ); // hook of footer widget and colophon?>
</footer>
我尝试在其他 CSS 中添加以下代码。没用。
.czr-credits {
display: none;
}
在您的仪表板中,转到外观 > 自定义 > 高级选项 > 其他 CSS 并输入以下代码:
.czr-credits {
display: none;
}
或者,方法二:
这涉及创建一个子 customizr 主题,该主题基本上覆盖其父样式(也包括页脚)。
- 在子主题中创建
inc
目录 - 将
czr-front-ccat.php
从/public/wp-content/themes/customizr/inc
复制到此子inc
目录 - 修改
czr-front-ccat.php
,文件中第 9456 行附近是有问题的函数,将插入 wordpress 和 customizr 引用的两个部分替换为对 apply_filters 函数的简单调用,但 sprintf 不包含字符串。
资源:
https://wordpress.org/support/topic/designed-with-the-customizr-theme/
https://docs.presscustomizr.com/article/35-how-to-customize-the-customizr-wordpress-theme
https://docs.presscustomizr.com/article/24-why-and-how-to-create-a-child-theme-with-wordpress
尝试添加育儿方式
body .czr-credits {
display: none;
}