【问题标题】:Adding a background options for a WordPress theme为 WordPress 主题添加背景选项
【发布时间】:2019-07-21 23:22:43
【问题描述】:

我是 WordPress 新手,刚开始设计一个主题。我想知道如何在 WordPress 的主题选项中添加更改背景的选项,以便用户可以自行更改。

【问题讨论】:

  • 好吧,您可以在Customizer 中为此添加自定义设置。你看过了吗?

标签: php wordpress themes


【解决方案1】:

您必须在主题中为背景自定义添加背景支持。打开您的functions.php文件并在其中添加以下代码。

add_theme_support( 'custom-background' );

【讨论】:

    猜你喜欢
    • 2014-02-10
    • 1970-01-01
    • 2016-08-25
    • 1970-01-01
    • 2015-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多