I am trying to get a child theme setup as to not screw with the original theme code. Other threads I have read insinuate that this should be easy and point back to codex for answers. The obvious issue is that even a basic child setup has not been tested by Kriesi (or staff) or the results would be touched upon in more detail (rather then just the pointer back to codex). Also please note... this is not a rant, and I have a smile on my face as I am writing this. So please do not feel like I am biting your leg off.
I have tested a child setup on a couple other themes (free generic themes... basic code), and all work fine. The issue with BrightBox and perhaps others fails when the functions.php gets put into place.
So here is the setup......
create folder: brightbox-child
in folder: create style.css and add the following
/*
Theme Name: BrightBox Child
Description: BrightBox Customizations
Author: Your Name
Template: brightbox
*/
@import url("../brightbox/style.css");
(customizations here)
--> save file
This is all that is required to create the child in it's basic form. Adding code to the style.css works fine.
Now create a functions.php. If you add nothing to the file all works fine... as soon as you add
<?php
to the top of the file, save and refresh, all is broken. It does not matter if you close the tag, nothing will work.
This is the child theme issue I am having, and codex does not help resolve this issue, nor does extreme Google searching.
---
To better understand what I want to do with the functions file is this. I would like to add the following shortcode function without it being overwritten in later updates (should there be any).
--> style.css:
span.keyword {background-color:yellow;}
--> functions.php
function keyword_shortcode( $atts, $content = null ) { return '<span class="keyword">' . $content . '</span>'; }
add_shortcode( 'keyword', 'keyword_shortcode' );
Thanks for any further insight anyone can offer into this matter.
Regards,
Kenny














