background not fixed and scaled on iPhone (but working on every other device)
background not fixed and scaled on iPhone (but working on every other device)
background not fixed and scaled on iPhone (but working on every other device)
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);
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
Simple CSS Styling Add this to your CSS #mc_embed_signup { background:#000; color:fff; border:1px solid red; padding:20px; } Adjust to Your Preferences You can adjust the border width by giving it a larger than 1px value, such as this: border:8px solid red; These are the colour values used. They are called Hexadecimals (Hex): #fff = White … Read more
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
This is simply the background colour of the body element. On your site it’s currently set as this: body { background-color: #c1e7e7; } This appears to be being added by your theme, probably based on a customisation option somewhere. You’d be able to overwrite it by adding matching CSS in Appearance > Customize > Addition … Read more
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
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
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
Okay! Finally I have found the solution! (even if I don’t understand why we have to do this that way). In fact we have not to modify the function.php file but the customizer.php with the code I quoted above (in the question). Now I really feel released from that issue, but anyone could explain me … Read more