• Resolved AM77

    (@andy277)


    I would like to add a default header like so:

    $args = array(
    'default-image' => get_template_directory_uri() . '/images/header.jpg',
    add_theme_support( 'custom-header', $args );

    But I use wordpress multisite and put all my codes in a file in an mu-plugin so do not use the get_template_directory_uri().

    Could someone show me how I get a default header image without getting the image from get_template_directory_uri(). For example an image from mysite.com/wp-content/custom-folder/custom-header.jpg

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you try this

    $args = array(
    ‘default-image’ => get_template_directory_uri() . ‘../custom-folder/images/header.jpg’,
    add_theme_support( ‘custom-header’, $args );

    Thread Starter AM77

    (@andy277)

    Thanks Konstantinos that worked, I didn’t think of that.
    I was trying to find an equivalent for get_template_directory_uri, but I just had to do it like this as you say to get it to work:

    get_template_directory_uri() . ‘/../../custom-folder/images/header.jpg’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘default header’ is closed to new replies.