WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "Notice" at top of page (6 posts)

  1. The Endless Meal
    Member
    Posted 1 year ago #

    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

  2. Tom Combs
    Member
    Posted 1 year ago #

    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

  3. The Endless Meal
    Member
    Posted 1 year ago #

    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!

  4. Tom Combs
    Member
    Posted 1 year ago #

    Excellent, very glad I could help :-)

  5. Tom Combs
    Member
    Posted 1 year ago #

    If you could mark this thread as "Solved", that would be great.
    (it's in the sidebar on the right) :-)

  6. The Endless Meal
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic