If you go to https://www.sexyfitness.com/ you get a php error : “Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home3/forwill/public_html/wp-includes/functions.php on line 3078”
We’re not using custom backgrounds in the new theme that we’re using. So I’m lost as to why this would throw an error, especially when i have the DNS configured to point www to sexyfitness.
Any ideas why this is happening.
]]>To fix the issue, please replace
add_custom_background() with add_theme_support( ‘custom-background’)
and
add_custom_image_header( ‘sundance_header_style’, ‘sundance_admin_header_style’, ‘sundance_admin_header_image’ );
with
add_theme_support( ‘custom-header’, array(‘sundance_header_style’, ‘sundance_admin_header_style’, ‘sundance_admin_header_image’));
Can you add this is the next version.
]]>Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead.
I disabled Subtle Background Patterns and am not receiving this notice now. I’m not sure the error is surely caused by this plugin or not, maybe it be one of my themes, but I did find the function “add_custom_background” in subtle_backgrounds.php line 194. I’m not a wordpress coding expert so dunno if its the same function.
Just wanted to post it in-case the developer wants to check. Its an awesomely useful plugin and I hope it gets the appreciation it deserves.
https://www.ads-software.com/plugins/subtle-background-patterns/
]]>I am pretty new to WP, and now I got stuck…
I hope you guys can help me with this one. I searched wherever I could, but was not able to find a solution for my problem.
I installed wordpress on my website, but when trying to activate the MATALA theme, I get a couple of errors:
***************************************************
Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /var/www/g40169/ikigai.nl/HTML/wp-includes/functions.php on line 2839
Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /var/www/g40169/ikigai.nl/HTML/wp-includes/functions.php on line 2839
Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /var/www/g40169/ikigai.nl/HTML/wp-includes/functions.php on line 2839
Warning: Cannot modify header information – headers already sent by (output started at /var/www/g40169/ikigai.nl/HTML/wp-includes/functions.php:2839) in /var/www/g40169/ikigai.nl/HTML/wp-includes/option.php on line 568
Warning: Cannot modify header information – headers already sent by (output started at /var/www/g40169/ikigai.nl/HTML/wp-includes/functions.php:2839) in /var/www/g40169/ikigai.nl/HTML/wp-includes/option.php on line 569
***************************************************
When I look in the file mentioned (functions.php) I cannot find the mentioned functions ( ( e.g. add_custom_background ).
Should I use a lower version of WP, or can this be fixed?
Your help would be highly appreciated.
Regards,
Cyrus
]]>I have been searching online for a bit and i have read other posts, but I cannot find anything specific to my issue.
I go to Appearance > Background and upload an image which doesn’t show at the background of my WordPress theme. I installed the Simple Full Screen Background Image Plugin and it doesn’t show. I did build on this theme from the existing New 3.0 Theme.
A background image only seems to work by hard coding it from css and i am trying to make it as easy as can be (as it should be!) that doesnt involve hard code. There doesnt seem to be any real reason why this doesnt work.
I’ve put this in my functions.php to call the background and using
if(function_exists('add_custom_background')) add_custom_background();
Could anyone help me out on this? Its seriously bugging me!
]]>add_custom_background() deprecated after Version 3.4 messed my Theme up.
I did change functions.php to
add_theme_support(‘custom-background’);
but then I only get a message that I can toggle between drafts.
My site disappeared..
What’s wrong?
Please help, otherwise I only can downgrade to 2.9 !
thank you!
I was wondering how I would go about hiding/removing the add_custom_background display options while keeping the uploading and image preview options?
Thanks!
]]>