Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Start Upload button not working
Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Aug 7, 2013 - 6:34 pm

Truly an outstanding product and wonderful support.

 

I'd recommend you guys any day!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 7, 2013 - 6:42 pm

Well thank you very much.
Did you say that the theme is an open source one? If so - can you give me a link so i can download it and take a look...

andy-signature.png
YELLOW
SWORDFISH
Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Aug 7, 2013 - 7:30 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 7, 2013 - 8:52 pm

thanks...

Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2013 - 4:46 pm

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.

Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2013 - 6:01 pm

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' );

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2013 - 8:00 pm

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...

Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2013 - 12:05 am

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 7, 2013 - 12:52 am

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...

Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 21, 2013 - 8:01 am

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!

 

 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625