-
Notifications
You must be signed in to change notification settings - Fork 556
Using it for a Child Theme errors #11
Comments
@GerritKuilder Can you provide a little more detail for this one? |
If you try to set up a child theme with this theme you get a few errors: require_once([...]\wordpress/wp-content/themes/bootstrapChild/admin/options-framework.php See http://codex.wordpress.org/Function_Reference/get_stylesheet_directory Also the style.css of a child theme is used to pull in the theme css's and I think at the moment this does not happen. I don't know how it will work in regards in pulling in lib stuff if they are also in a child theme. I think it is best I make a separate wordpress setup for this and see how far I can get. |
Looked at the latest download and had issues with the admin part: changed code: in options-framework.php, the only way to get it to work. if ( STYLESHEETPATH == TEMPLATEPATH ) { Changed the header.php: lots of styles (css/js) where hardcoded to the template directory. For child themes this is not very convenient. Most styles use only wp_head function and add_action(wp_head,....). As the bootstrap.css set some backgrounds it would be convenient to be able to override all css/js etc in a child theme. (although a better solution would be to import them in child/style.css) header.php: Site: devel.kuilder.net/bootstrap |
I've run into this too. For now I've worked around it like this:
|
Please have a look at the latest commit and let me know how things work. |
I've confirmed that it now works as a child theme, without the symlinks I created before. This is great as it now means I can just |
@Synchro Great news! Please let us know if you see any issues. |
So far So Good, nice |
in library/admin.php:
echo '';
In the event a child theme is being used, the parent theme directory Path will be returned, use get_stylesheet_directory() to get the child theme directory Path.
There might be more issues with it as I could not find a reference to style.css, only the minified versions.
The text was updated successfully, but these errors were encountered: