I can’t change the body background-color through style.css

It sounds like you just need to remove support for the custom background color. remove_theme_support( ‘custom-background’ ); You will probably need to hook it to get it to run after the parent functions.php function disable_bg_wpse_97248() { remove_theme_support( ‘custom-background’ ); } add_action(‘after_setup_theme’,’disable_bg_wpse_97248′,100)

Change background color of subpages

Another solution could be you register a meta box for the project pages which lets you type in whatever class name you want for each page… function add_project_page_metabox() { add_meta_box( ‘project_page_meta’, // $id ‘Project Meta’, // $title ‘ppm_callback’, // $callback ‘page’, // $post_type ‘side’, // $context ‘low’ // $priority ); } add_action( ‘admin_init’, ‘add_project_page_metabox’ ); … Read more

Using featured img as div background

Try something like this: <?php global $post; $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, ” ); $default = get_template_directory_uri().”/assets/images/backgrounds/highway.jpg”; $bgimg = (isset($src[1])) ? $src[0] : $default; ?> <style type=”text/css”> .parallax { background-image: url(<?= $bgimg ?>); } </style> wp_get_attachment_image_src() says it returns false when not found, but for some reason I’ve had bad time with … Read more

Custom Background by Page IDs

The CSS is generated on the file inc/custom-css.php, the background color is set on line 76: $background = sanitize_hex_color_no_hash( get_theme_mod( ‘background_color’ ) ); So you can take advantage of the theme_mod_{$name} filter, which changes the value of the get_theme_mod($name) function, by adding this to your functions.php file: add_filter( ‘theme_mod_background_color’, function( $value ) { $custom_bg_page_ids = … Read more

Custom header tiling?

You are putting an image into the style attribute – this is wrong. You only need the path, not a tag: <div class=”art-header” style=”background-image:url(“https://wordpress.stackexchange.com/questions/71185/<?php header_image(); ?>”); background-repeat:repeat; height:<?php echo get_custom_header()->height; ?>px; width:<?php echo get_custom_header()->width;?>px;”> </div> After seeing the issue at hand, I would instead suggest this: your HTML: <div class=”art-header”>….</div> Anywhere on the same file … Read more

Background image not appearing

custom background can be used in below way: $defaults = array( ‘default-color’ => ”, ‘default-image’ => ”, ‘default-repeat’ => ”, ‘default-position-x’ => ”, ‘default-attachment’ => ”, ‘wp-head-callback’ => ‘_custom_background_cb’, ‘admin-head-callback’ => ”, ‘admin-preview-callback’ => ” ); add_theme_support( ‘custom-background’, $defaults ); Example usage: $args = array( ‘default-color’ => ‘000000’, ‘default-image’ => ‘%1$s/images/testback.jpg’, ); add_theme_support( ‘custom-background’, $args … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)