Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Custom background image dynamic
- // 1) in section or div for the html part need the following php code
- style="background-image: url(<?php get_background_image(); ?>)"
- //2) And functions.php
- add_theme_support( 'custom-background', array(
- 'default-image' => get_template_directory_uri() . '/images/header.jpg',
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement