Change the background of each post according to the category

I do not know this theme. But you must use this two functions somewhere: get_theme_mod (‘background_image’, $default); set_theme_mod (‘background_image’, $_category_image_absolute_path); Maybe, you can define new modification names with this functions. For example, ‘backgroud_image_entertainment’, ‘background_image_storysode’, etc. (as is shown in the referred web page) by using set_theme_mod. set_theme_mod (‘backround_image_entertainment’, $_category_image_absolute_path); Then, you should add some functions … Read more

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 );

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