Forums

[resolved] TwentyEleven headers in child theme (3 posts)

  1. zeaks
    Member
    Posted 10 months ago #

    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

  2. alchymyth
    The Sweeper
    Posted 10 months ago #

    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)

  3. zeaks
    Member
    Posted 10 months ago #

    That was it,it works fine now, thanks

Reply

You must log in to post.

About this Topic