• Resolved Mxsix

    (@mxsix)


    I was wondering if there was a way (other than editing the database table) to provide a URL path to an image header in Twenty Ten (default WP Theme). Right now, you can only Upload an image to change it. That seems like more work and if I’m updating the header fairly often, that Uploads folder only grows…

    Can this be done in functions.php? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • the header images are in the folder /images/headers/

    they are always in pairs:
    myimage.jpg ( 940 * 198 px )
    myimage-thumbnail.jpg ( 230 & 48 px )

    the reference to them is in functions.php from line 125

    // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
    	register_default_headers( array(
    ...and so on...

    adding your own will show them as choices in the header options in the dashboard.

    Thread Starter Mxsix

    (@mxsix)

    Thanks, I actually saw that earlier, but I thought it just might be easier to extend the theme to allow a custom URL path. Does anyone know if this is still possible?

    But I guess I’ll just add to the array in my own functions.php (using my child theme).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Provide image URL, not upload image in Twenty Ten header’ is closed to new replies.