Child theme and custom headers

9 views
Skip to first unread message

C!

unread,
Jun 15, 2010, 12:19:05 PM6/15/10
to K2 Support
Hi there,
I have a simple child theme in which I would like to add some CSS
customization and my custom headers.

I have created a child theme and in it's folder I created the "images/
headers" folder and placed there my headers jpg.

From K2 Options it seems I can see only the K2 original "images/
headers" folder but the child style then will load images if and only
if these are in my child theme headers folder.

Am I wrong? Where is the mistake? What is the correct way to use
personal headers with child themes?

Thanks for help,
C!

Michael Heilemann

unread,
Jun 17, 2010, 11:34:00 AM6/17/10
to k2-su...@googlegroups.com
I'm afraid I can't answer that off the top of my head, but I seem to
remember that there was a ticket in the issue tracker at one point.
What version are you using?

/ M

> --
> You received this message because you are subscribed to the Google Groups "K2 Support" group.
> To post to this group, send email to k2-su...@googlegroups.com.
> To unsubscribe from this group, send email to k2-support+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/k2-support?hl=en.
>

C!

unread,
Jun 17, 2010, 11:43:05 AM6/17/10
to K2 Support
I'm using the latest nightly build with WP3.0-RC3

I'll try to browse the issue tracker and see if there is something on
this topic

Thanks,
C!

On 17 Giu, 17:34, Michael Heilemann <heilem...@gmail.com> wrote:
> I'm afraid I can't answer that off the top of my head, but I seem to
> remember that there was a ticket in the issue tracker at one point.
> What version are you using?
>
> / M
>

Steve Lam

unread,
Jun 18, 2010, 2:58:20 AM6/18/10
to k2-su...@googlegroups.com
K2's headers will need to be updated to handle child themes. For now, you can override where K2 looks for the header images by adding the following in your child theme's functions.php:

define('K2_HEADERS_DIR', get_stylesheet_directory() . '/images/headers');
define('K2_HEADERS_URL', get_stylesheet_directory_uri() . '/images/headers');

-Steve

C!

unread,
Jun 18, 2010, 3:35:53 AM6/18/10
to K2 Support
Thanks Steve, I added the two defines and it works like a charm!

C!
Reply all
Reply to author
Forward
0 new messages