• Resolved The Endless Meal

    (@the-endless-meal)


    I’ve just gone onto my site http://www.theendlessmeal.ca and there are 2 notices at the top of the page. Other than activating a Simple Google Analytics plugin I haven’t done any work to my site. Any idea how I can fix this?

    Any help would be really appreciated!

    Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/krileg2/theendlessmeal.ca/wp-includes/functions.php on line 2638

    Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/krileg2/theendlessmeal.ca/wp-includes/functions.php on line 2638

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did you just run a wordpress update?

    Open Functions.php
    look for this line of code:
    add_custom_background();
    //and replace it with…
    add_theme_support( 'custom-background' );

    //then look for:
    add_custom_image_header
    // replace with...
    add_theme_support( 'custom-header', $args )

    let me know if that works

    Thread Starter The Endless Meal

    (@the-endless-meal)

    Hi Tom,

    I did run the WordPress update. Your suggestions worked. Thank you so much!

    The only thing I had to change was to remove $args from add_theme_support( ‘custom-header’, $args ) Other than that the code worked perfect.

    Thank you!

    Excellent, very glad I could help 🙂

    If you could mark this thread as “Solved”, that would be great.
    (it’s in the sidebar on the right) 🙂

    Thread Starter The Endless Meal

    (@the-endless-meal)

    For sure I can! Thanks for letting me know that I needed to change the status 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘"Notice" at top of page’ is closed to new replies.