Hi @giorgio25b,
In the future theme updates, the stucture will not change anymore :)!
The next release will allow you to easily overrive any classes thanks to a conditional statement : if ( class_exists(…) ) { class … {} }. In other words, core classes are made “pluggable”.
I hope this will make it more convenient for you to work with child theme.
That says however, I would be interested to know why you prefer overriden the core classes instead of using the theme’s hooks API (filters and actions) :
– Are there any hooks missing that you would like to see in the theme ?
– Can you provide an example of the type of features / functions you override in your child themes?
Thanks and I look forward to reading from you!
Thanks Nicholas,
I’m looking forward to the new version!
The reason why I did not use the hooks is because at the beginning I was too lazy or in a rush to write my own filters for all the customizations needed.
I’m not overriding the code in that brutal way anymore and here I promise to use only custom filters and actions like this one:
//function to override the menu wrapper's class
function my_custom_navbar_wrapper_class() {
echo apply_filters( 'my_custom_navbar_wrapper_class', 'navbar-wrapper clearfix span12' );
}
add_filter('tc_navbar_wrapper_class', 'my_custom_navbar_wrapper_class' );
Thanks,
Giorgio
OK thanks for this feedback Giorgio. 😀
That’s indeed the best way to use the theme!
Keep up the good work on your websites!
oh btw,
here is where I needed the menu wrapper to be span12:
http://www.fipa.bc.ca/
Thanks and 2 ∞ & →
Thanks,
I did the theme development and Customizr rocks for this, the visual design has been done by WorkingDesign.net
To the next then.
G.
You are doing awesome => keep submitting you best creations to the Customizr theme showcase!
I’m having the same/similar issue with one of two Customizr child-themes on a WP multisite server.
The problematic child-theme delivers no Customizr CSS because the link is wrong: ‘…/wp-content/themes/customizr/inc/css/red.min.css’.
In the other child-theme it is correct: ‘../wp-content/themes/customizr/inc/assets/css/green.min.css’
Debug steps:
1) The child-theme blog.php and functions.php are extactly the same in both versions
2) I did delete the WP Super Cache
3) I’m now trying to compare and find if style.css can cause this, but so far could not find anything
@chrisfo, please start a new thread.
code correction here below:
//function to override the menu wrapper's class
function my_custom_navbar_wrapper_class() {
return apply_filters( 'my_custom_navbar_wrapper_class', 'navbar-wrapper clearfix span12' );
}
add_filter('tc_navbar_wrapper_class', 'my_custom_navbar_wrapper_class' );
changed echo with return