if you are asking default background image for
add_theme_support( 'custom-background');
then it can be set using 'default-image' => get_template_directory_uri() . '/images/pattern.png',
complete code will look like below.
$args = array(
'default-color' => 'f0f0f0',
'default-repeat' => 'fixed',
'default-image' => get_template_directory_uri() . '/assets/images/pattern.png',
);
add_theme_support( 'custom-background', $args );
Related Posts:
- How to add CSS class to custom logo?
- Editing the custom background CSS
- Add colors to existing color palette without replacing it
- What flex-width/height does?
- add_theme_support(‘my-custom-feature’)
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- “add_theme_support” for custom footer color?
- Show video as part of the post?
- How to add theme support?
- Edit footer via customizer
- Theme Development: Starter Content after hook
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- How to use add_theme_support(‘html5’)?
- Theme support title tag – how to replace the default WP separator (with a filter)?
- WordPress HTML5 Gallery Support – Convert HTML4 -> HTML5
- add_theme_support( ‘admin-bar’ ) causes fatal error
- What is difference between add_theme_support and Theme Customization API?
- Replaceing _custom_background_cb
- Theme’s featured image option is not showing up
- What is the difference between wp_register_sidebar_widget and register_widget?
- How to enqueue script if widget is displayed on page?
- Form Submitting Error with get_template_part()
- Get 10 posts from a WP_Query. If less than 10, get the remainder from elsewhere
- get_stylesheet_directory() returns wrong URI… localhost/using vhosts
- How Do I Programmatically Force Custom Permalinks with My Theme?
- Is it feasible to build and update a WordPress website offline?
- How to edit an existing WordPress theme? [closed]
- Where is default wp_head() implemented?
- How do I hide tags that have only been used once?
- Questions about WordPress.org theme review
- Translated strings not appearing – what am I missing?
- Feature Survey – What would you want in a resume theme?
- Can I upload WordPress-react theme in Wp theme repository
- the_excerpt() not showing manual excerpt for Pages
- How should I store global information such as a phone number so that it is editable through the CMS?
- What are the Theme tags in style.css used for?
- WordPress nav_menu_css_class theme filter is not being called
- How do I locally enqeue the mediaelement.js file into a wordpress theme
- Cannot get full thumbnail size using the_post_thumbnail
- Version control for both Vagrant config and themes being developed [closed]
- Is there a way to activate different theme for specified users? [closed]
- wp_editor() usage in custom meta box
- current_user_can Not Always Working Properly
- Is there an action for save_menu and/or update_menu?
- Does a premium / for sale theme need to go through the WordPress approval process?
- filter out “uncategorized” from all category listings with one filter in functions.php?
- Can’t select my block by clicking on it
- Is it possible to use Twitter intents with the post’s image in WordPress?
- How to add a user defined hyperlink to the “Featured Image” and the_post_thumbnail()
- Using PIE CSS in WordPress. “localizing” styles
- Category specific themes?
- Missing tested up to on readme text validator
- Change locale by detecting viewer’s browser language setting and let them choose prefered language after
- Why is it needed to enqueue parent stylesheet in child theme?
- WordPress Unite Theme: Footer isn’t sticking [closed]
- How to set a correct $content_width when there are two content widths on one page?
- Limit number of users a role can create
- How to enqueue javascript for WP Customize options sidebar?
- Do not display post images on front page
- Customize how a WordPress theme looks like in the Theme Selector
- Change WordPress header color using customizer
- Default Text not showing from customizer
- Images not showing after path specified in header.php
- How to set wp_options in functions.php for removeing the Default Front Page
- Template for landing pages
- How to show a manageable list of images on a post?
- Remove link on full-size images
- How to reset post data properly
- Theme options save routine clashes with plugin save
- get_search_query() not working with search queries with ampersand in it
- If user is logged in and has a role echo statement
- Fixed button and slideshow in template upload per page
- Non-standard (new) theme file
- Best Practice for Server Processing
- MapPress Easy Google Map in Jquery Tabs Problem
- Homepage slider not using correct images
- WordPress Show Single Post on Home Page with previous/ Next Button
- Is there any way to store single.php wordpress file into a php variable
- How to change listing type permlink?
- Menu is in Reversed order
- How to connect two child themes on different sub domains to the same base theme
- Group several custom global page templates in sub-folder
- How to hide blog by id wordpress multisite listing
- Should I detect the device or the page first?
- Get chronological page order
- Query wp_postmeta into an array based on post_id
- Theme not uploading showing maximum upload size on live site
- How to override wordpress native options with theme options
- Best way to access variables in template markup
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- Problem with multiple menus in theme
- How to convert that page to a wordpress template? [closed]
- JQuery Equal Height in Rows Conflicts Only Works without Registering wp_footer();
- Saving Permalinks Results in 403 MAMP (Windows)
- Add rel to all images in a post
- WordPress theme Modifications not showing up on live server
- Incorrect sidebar showing on WooCommerce Store page [closed]
- white spaces on the all sides [closed]
- Not Able to Access Terms Under Custom Taxonomy Archive
- WordPress search field won’t get wider