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 6, 2013 - 3:41 pm

Sorry, I thought I added the link above.

http://landlordmart.com/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 4:25 pm

hmm.. doesnt look like the change was actually made? jquery ui is still getting loaded in the header... and then when bootstrap loads in footer, it stomps on it...

away from my computer at moment and replying by email, so I cant look at the code I gave you... please make sure the change was saved and matches... I will look at it when I can get to desktop...

Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 4:37 pm

Thanks for the help.

I was wondering if perhaps the reason the change didn't take is because I am using a child theme. The file where the change was made is in a sub directory of the parent. I replicated the directory structure in the child theme and copied the file to the right location, but now I wonder if that is enough to call the file. (While I'm a fast learner, I'm not really a programmer.)

I'll make the change in the parent and select it as my theme and see if that resolves my initial problem.

I'll report back.

 

 

Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 4:42 pm

Well, that theory didn't work.

I made the change to the file in the parent theme and then switched to the parent. Still no dice. :-(

 

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

Steve... (Mr Papa). I think the dependency of Bootstrap on jQuery is probably not necessary and it might be worth removing that... What do you think?

andy-signature.png
YELLOW
SWORDFISH
Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 5:24 pm

Ok. I just commented out the bootstrap line, and of course it solves my initial problem. I'm just not sure what else it breaks, but at least I know the change is effective within my child theme.

I'd still like a solution, as I'm not sure what trouble I just walked myself into though. :-o

ETA: I just missed your post. But is what I essentially did what you were asking Steve?

Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 5:39 pm

Well, I knew my ad hoc approach would be too good to be true.

By commenting out the bootstrap line, I break mobile navigation. :-(

Back to square one.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 5:56 pm

did I do it backwards??? I want jquery-ui dependent on bootstrap... so bootstrap is loaded first...

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

no, think I have the order right...  lets check couple things...

one, you replaced those three lines with the other three lines?  so the order was changed, right?

second, in:

wp_enqueue_script( 'jquery-ui-core', '', array('jquery', 'bootstrap'), false, true );

just want to make sure the '' was entered as two single quotes... likely would be an error if not, but just want to be sure...

okay, then, lets try Andy's idea plus one more...

try changing:

wp_enqueue_script( 'bootstrap' ,TC_BASE_URL . 'inc/js/bootstrap.min.js' ,array( 'jquery' ),null, $in_footer = true);

to

wp_enqueue_script('bootstrap' ,TC_BASE_URL . 'inc/js/bootstrap.min.js', false, false, false);

and see if we can force it into header... if you have issues after doing that, then try

wp_enqueue_script('bootstrap' ,TC_BASE_URL . 'inc/js/bootstrap.min.js', array('jquery'), false, false);

which puts teh jquery dependency back...

Avatar
GE
Member
Free Members
sp_UserOfflineSmall Offline
Aug 6, 2013 - 9:49 pm

Unfortunately, none of that worked. I checked and double checked that I followed your instructions. Tried it all a few times. 

Problem remains. :(  

So far all that seems to somewhat work is killing the library altogether. But then it breaks the mobile menus. Frustrating. Close but no cigar.

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