• Resolved zeaks

    (@zeaks)


    I’m trying to add custom headers to a child theme for Twenty Eleven. The headers are just resized default headers, but my code isn’t showing the headers in the admin for some reason.
    Anyone see anythign wrong with the code I’m using?

    http://pastebin.com/CECVRTfr

Viewing 2 replies - 1 through 2 (of 2 total)
  • it could be that these ‘spaceholders’ &s in the parent theme work within single quotes –
    'url' => '%s/images/headers/wheel.jpg',

    while a string variable like in your child theme code would need double quotes:
    'url' => "$orange/images/headers/wheel.jpg",
    or string concatenation:
    'url' => $orange.'/images/headers/wheel.jpg',

    http://us2.php.net/manual/en/function.echo.php
    (couldn’t find a better resource)

    Thread Starter zeaks

    (@zeaks)

    That was it,it works fine now, thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TwentyEleven headers in child theme’ is closed to new replies.