override a css style [closed]

You can not delete or ignore default styling in a child theme. You must override the declaration. .content-ver-sep { background: transparent !important; border-bottom: none !important; clear: both; height: 1px; } this should do the trick –

How to use WP Theme Option: Custom_Backgrounds on specific element?

If your theme uses in-built custom-background callback then you can overwrite add_theme_support in your child theme. Yo do not need to use remove_theme_support. First add custom-background support with your callback function. $defaults_args = array( ‘wp-head-callback’ => ‘my_custom_background_cb’, ); add_theme_support( ‘custom-background’, $defaults_args ); In callback function specify div CSS class or ID function my_custom_background_cb() { $bg_image … 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

Section Background Images?

You need to modify your theme pages to support this change. If you already have a background in place you can modify it on a per post basis using the technics describe in that post. This plugin Custom CSS per post in WordPress is a good example at setting custom css per page. The pro … Read more

Placing background image over section divider

It looks like you’re using Divi, and you’ve placed the image in the column that Divi is calling “Section 4” on that page. If you want the image to appear in section 3 and get cut off by the divider, then you have a couple of solutions: Move the image to section three, and adjust … Read more

Change background image per page

Yes, this can be done with CSS. I have done this with page and post IDs. IMPORTANT: The following are base examples and will need to be tested and tuned for your use. If you note any error here (with the base CSS examples), please post a note about the error. To ID pages and … Read more

Is there any way to register custom background images like header images?

Here is code for it! As explained by Progostech $defaults = array( ‘default-color’ => ”, ‘default-image’ => ”, ‘default-repeat’ => ‘repeat’, ‘default-position-x’ => ‘left’, ‘default-position-y’ => ‘top’, ‘default-size’ => ‘auto’, ‘default-attachment’ => ‘scroll’, ‘wp-head-callback’ => ‘_custom_background_cb’, ‘admin-head-callback’ => ”, ‘admin-preview-callback’ => ” ); add_theme_support( ‘custom-background’, $defaults );

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)