我正在使用WordPress 3.5.1和twentyten。
我想删除对自定义背景的支持。我找到了以下文本:http://codex.wordpress.org/Function_Reference/remove_custom_background
但是我是php的新手,所以我不知道如何处理这些信息。
我想我应该用这个代码<?php remove_custom_background() ?>
但该怎么办呢?我应该把它放在哪里?
谢谢/弗里达
我正在使用WordPress 3.5.1和twentyten。
我想删除对自定义背景的支持。我找到了以下文本:http://codex.wordpress.org/Function_Reference/remove_custom_background
但是我是php的新手,所以我不知道如何处理这些信息。
我想我应该用这个代码<?php remove_custom_background() ?>
但该怎么办呢?我应该把它放在哪里?
谢谢/弗里达
在主题文件夹中应该有一个名为functions.php
. 搜索该行
add_theme_support( \'custom-background\' );
并将其替换为#add_theme_support( \'custom-background\' );
这只是“删除”调用函数,因此可以在管理端指定自定义背景。