Custom Background: Can’t Set Color Default

You have to pass the $defaults as the second parameter to add_theme_support() per the Codex $defaults = array( ‘default-color’ => ‘000000’, ‘default-image’ => ”, ‘wp-head-callback’ => ‘_custom_background_cb’, ‘admin-head-callback’ => ”, ‘admin-preview-callback’ => ” ); add_theme_support( ‘custom-background’, $defaults);

Jumbotron not showing up on Firefox or Safari

Maybe you CSS code is confusing the other browsers. First you are using the prefixed properties after the unprefixed ones, I would inverse that. Secondly you are using the background shorthand property with the values in uncommon order. I think there are browsers out there, which expect them in specific order. .jumbotron { background: url(‘<?php … Read more

Inserting a background-image

I think your CSS is OK, (I am not an expert at CSS but I am currently learning it myself). I think you issue is a cerficate error on the page you are hosting try this: body {background-image: url(“https://image.shutterstock.com/image-vector/sample-stamp-grunge-texture-vector-600w-1389188336.jpg”); background-size:cover;} I tested it in the additional CSS on my page and it worked. I also … Read more

Restrict size of custom background image

There are two parts to the answer: You can set the size of images using add_image_size. This is done in your functions.php. add_image_size( ‘background-image’, 900, 500 ); //900 px wide 500px high – no crop Once this is set you will need to regenerate your thumbnails. There are number of great plug-ins that can help … Read more

Custom Background default color not changing

I have hunted down the problem. It is the _custom_background_cb function in wp-includes/theme.php file. on line 1272 the comment “A default has to be specified in style.css. It will not be printed here.” Line 1272 is where the color is being retrieved: $color = get_theme_mod( ‘background_color’ ); If we change that to: $color = get_theme_mod( … Read more

Blank/White on certain parts of pages

This is the CSS that you want to run to set your backgroudn color to black: #thepassion_content { background: #000; } You can add that to your child theme’s style.css, or you can add the following to your child theme’s functions.php: add_action( ‘wp_head’, ‘hide_winkelwagen’ ); function hide_winkelwagen() { ?> <style itype=”text/css”> #thepassion_content { background: #000; … Read more

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