Support Forum
It is.
The link may be found here: http://wordpress.org/themes/customizr
As I understand it, it has widespread interest.
Apparently, it gained popularity at a rate very unusual for new themes.
Well, you know what they say about teaching a man how to fish...
I recently updated SP and my theme and low and behold, my problem returned. While I made backups of everything, I'm not sure what you helped me change or where to look for it.
Any chance you could provide me the instructions here or in a pm?
Thanks, guys. I should have asked you then what you did to fix it, so I wouldn't have to bother you again.
Ok. So I figured it out.
Posting for posterity and for any others using the Customizr theme.
In the class-fire-ressources.php change the following:
****FROM:
function tc_scripts() {
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'jquery-ui-core' );
wp_enqueue_script( 'bootstrap' ,TC_BASE_URL . 'inc/js/bootstrap.min.js' ,array( 'jquery' ),null, $in_footer = true);
****TO:
function tc_scripts() {
wp_register_script('bootstrap' , TC_BASE_URL . 'inc/js/bootstrap.min.js', array( 'jquery' ), false, false);
wp_enqueue_script( 'bootstrap' );
wp_deregister_script('jquery-ui-core');
wp_register_script( 'jquery-ui-core', '/wp-includes/js/jquery/ui/jquery.ui.core.min.js', array('bootstrap'), false, false );
wp_enqueue_script( 'jquery-ui-core' );
yup, that's it... thanks for posting as bootstrap usage by themes seems to be growing... rumors have WP perhaps including bootstrap in core in 3.8... have to see if that pans out as they should ensure its loaded properly...
Visit Cruise Talk Central and Mr Papa's World
Well, I was too fast on the draw, I think...
While the old fix seemed to work with everything updated, I later realized it broke the functionality of the expanding circles for featured images found in the Customizr theme.
So the code I posted above isn't going to work.
But I did figure out that all I needed to do was to make sure bootstrap wasn't loading in the footer. I simply changed the last setting in the following code from 'true' to 'false'.
****ORIGINAL THEME CODE
wp_enqueue_script( 'bootstrap' ,TC_BASE_URL . 'inc/js/bootstrap.min.js' ,array( 'jquery' ),null, $in_footer = true);
****NEW CODE
wp_enqueue_script( 'bootstrap' ,TC_BASE_URL . 'inc/js/bootstrap.min.js' ,array( 'jquery' ),null, $in_footer = false);
I've tested this now repeatedly in several browsers, logged in and out. Now the upload buttons work AND the feature circles.
Amazing it boils down to something as simple as that. Maybe that will help someone else.
Now to turn on the rest of my plugins and hope nothing else blows up.... stay tuned.
ETA: All plugins on and everything still seems to work.
should work... but is theme dependent and sp settings dependent... the real requirement is to get bootstrap loaded before the wp jquery ui... which this appears to do...
some themes load there stuff in the footer... and sp has an option to load our stuff in the footer (or header)...
so yeah, the key is to get bootstrap loaded first...
Visit Cruise Talk Central and Mr Papa's World
Just thought I'd add to this topic as I was having similar problems...
Using Flexform responsive theme, the file upload buttons were showing as text. Add upload worked, but Start didn't.
Long story short, I added the following to my child theme functions.php:
wp_deregister_script ('sf-bootstrap-js'); wp_register_script('sf-bootstrap-js' , get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), false, false); wp_enqueue_script( 'sf-bootstrap-js' ); wp_deregister_script('jquery-ui-core'); wp_register_script( 'jquery-ui-core', '/wp-includes/js/jquery/ui/jquery.ui.core.min.js', array('sf-bootstrap-js'), false, false ); wp_enqueue_script( 'jquery-ui-core' );
All seens OK on the site now, not found anything that doesn't act as it should (touch wood...). There may be an easier or more professional way of doing this, but i've muddled through with my basic knowledge!
1 Guest(s)