Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $defaults = array(
- 'default-color' => '',
- 'default-image' => '',
- 'default-repeat' => 'no-repeat',
- 'default-position-x' => 'center',
- 'default-position-y' => 'fixed',
- 'default-size' => 'fixed',
- 'default-attachment' => 'scroll',
- 'wp-head-callback' => '_custom_background_cb',
- 'admin-head-callback' => '',
- 'admin-preview-callback' => ''
- );
- add_theme_support( 'custom-background', $defaults );
- /* parallax */ #home {
- background: url(<?php get_background_image(); ?>) no-repeat center center fixed;
- display: table;
- height: 100%;
- position: relative;
- width: 100%;
- -webkit-background-size: cover;
- -moz-background-size: cover;
- -o-background-size: cover;
- background-size: cover;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement