在wordpress上的Customizr主题中编辑页脚文本的位置

问题描述 投票:0回答:2

请帮我在哪里编辑页脚,删除文本“Powered by Designedizr 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;

}

php wordpress wordpress-theming custom-wordpress-pages
2个回答
1
投票

在仪表板中,转到外观>自定义>高级选项>其他CSS,然后输入以下代码:

.czr-credits {
    display: none;
}

或者,方法2:

这涉及创建一个子自定义主题,它基本上覆盖了它的父母样式(包括页脚)。

  1. 在子主题中创建inc目录
  2. czr-front-ccat.php/public/wp-content/themes/customizr/inc复制到这个孩子的inc目录中
  3. 修改czr-front-ccat.php,在文件中的第9456行附近是违规函数,用简单调用apply_filters函数替换插入wordpress和customizr引用的两个部分,但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


1
投票

尝试添加父母

body .czr-credits {
    display: none;
}
© www.soinside.com 2019 - 2024. All rights reserved.