简体   繁体   中英

Adding a background options for a WordPress theme

I am new to WordPress and just started designing a theme. I want to know what to do to add an option to change the background in my theme options in WordPress, so that the user can change it by themselves.

You have to add background support in themes for the background Customizations. open your functions.php file and add the following code inside it.

add_theme_support( 'custom-background' );

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM