Comments (8)
@GerritKuilder Can you provide a little more detail for this one?
from wordpress-bootstrap.
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
http://codex.wordpress.org/Child_Themes
a child theme has the advantage of making additional changes to a theme without the need to modify the original code.
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.
from wordpress-bootstrap.
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 ) {
define('OPTIONS_FRAMEWORK_URL', TEMPLATEPATH . '/admin/');
define('OPTIONS_FRAMEWORK_DIRECTORY', get_bloginfo('template_directory') . '/admin/');
} else {
define('OPTIONS_FRAMEWORK_URL', STYLESHEETPATH . '/admin/');
define('OPTIONS_FRAMEWORK_DIRECTORY', get_bloginfo('template_directory') . '/admin/');
}
require_once (get_template_directory() . '/admin/options-framework.php');
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,....).
Could not find the details..... but most likely doe some clever stuff to see if a child theme is used and/or files exist.
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
from wordpress-bootstrap.
I've run into this too. For now I've worked around it like this:
- Created symlinks to the
admin
andlibrary
folders in the master theme in the child folder - Changed this in Header.php:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
Then imported the master style sheet from inside my child theme's style.css.
This is all very hacky though, not a proper fix!
from wordpress-bootstrap.
Please have a look at the latest commit and let me know how things work.
from wordpress-bootstrap.
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 git pull
in the master theme folder and not worry about breaking anything. Thanks for pushing the fix.
from wordpress-bootstrap.
@Synchro Great news! Please let us know if you see any issues.
from wordpress-bootstrap.
So far So Good, nice
from wordpress-bootstrap.
Related Issues (20)
- Javascript Live Reload
- Main site down HOT 1
- Cannot access global $wp_query;
- Can't make it work on windows+wamp HOT 2
- Font Awesome not working HOT 8
- Drop down menu isn't working HOT 2
- Nav Item > Child > Child does not open on click HOT 5
- Is development on this theme dead? HOT 22
- Keeping npm and bower up to date HOT 2
- Can use this themes in shared hosting ? (cant npm) HOT 3
- How to Change default boostrap theme to bootswatch cyborg
- Importing Custom fonts in theme
- Wrong call for previous and next posts link in index.php
- Where Are [caption] tags being stripped put
- Limited number of Menus
- I recommend moving to this project
- second level menu not working HOT 2
- Demo Not Working
- collapsed menu
- I'd like to update the versions and documentation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-bootstrap.