as I said, lets see if Andy can provide the exact file since based on the previous posts, he has a copy…
Support Forum
OMG! I found it in the WordPress/WP-Content/themes/functions.php file.
After Changing the “True” to “False“, everything worked perfect.
wp_register_script(
‘tw-bootstrap’,
get_template_directory_uri() . “/js/bootstrap{$suffix}.js”,
array(‘jquery’),
‘2.0.3’,
false
);
wp_register_script(
‘the-bootstrap’,
get_template_directory_uri() . “/js/the-bootstrap{$suffix}.js”,
array(‘tw-bootstrap’),
$theme_version,
false
);
Thank You again
Hi guys, I have the same problem on my forum. I think it’s too a “bootstrap” problem, but i’m not sure. I’m just a beginner.
So, i have the x2 wordpress theme, and for my forum i have “sky blue”. Any Idea?
Thank you for your help!
I found in my x2.php this line, i think my problem is here… Thank you
### js
function enqueue_script() {
global $cap;
if( is_admin() )
return;
// on single blog post pages with comments open and threaded comments
if(defined(‘BP_VERSION’)){
if ( is_singular() && bp_is_blog_page() && get_option( ‘thread_comments’ ) ) {
// enqueue the javascript that performs in-link comment reply fanciness
wp_enqueue_script( ‘comment-reply’ );
}
} else {
if ( is_singular() && comments_open() && get_option( ‘thread_comments’ ) ) {
// enqueue the javascript that performs in-link comment reply fanciness
wp_enqueue_script( ‘comment-reply’ );
}
}
wp_deregister_script( ‘ep-jquery-css’ );
wp_enqueue_script( ‘jquery’ );
wp_enqueue_script( ‘jquery-ui’ );
wp_enqueue_script( ‘jquery-ui-tabs’ );
wp_enqueue_script(‘bootstrapjs’, get_template_directory_uri().’/core/includes/bootstrap/js/bootstrap.min.js’, array(‘jquery’) );
wp_enqueue_script(‘waypoints’, get_template_directory_uri().’/core/includes/waypoints/waypoints.min.js’, array(‘jquery’), ‘1.4.4’, true );
add_action(‘wp_footer’, ‘waypoints_js’, 1 );
}
mmm. Nit sure of there are any examples in this long thread that will helpo you out. have you looked?
You could just try moving the bootstrap enqueue to between the jquery and jquery.ui enqueues… but I wouldn’t be too sure that will work. But worth a try first perhaps.
I believe there is an example in this thread… you will likely have to deregister jquery ui and then reregister and enqueue it with bootstrap as a dependency…
something like this one: https://simple-press.com/support-forum/sp5-plugin-topics/start-upload-button-not-working/page-5/#p133610
but wouldnt hurt to try Andy’s suggestion too… or make sure bootstrap loads in header and jquery ui in footer…
Yeah! Thank you very much for your help. I tried different possibility and i found an answer :
Before
wp_enqueue_script( ‘jquery’ );wp_enqueue_script( ‘jquery-ui’ );
wp_enqueue_script( ‘jquery-ui-tabs’ );
wp_enqueue_script(‘bootstrapjs’, get_template_directory_uri().’/core/includes/bootstrap/js/bootstrap.min.js’, array(‘jquery’) );
After
wp_enqueue_script( ‘bootstrap-js’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, array( ‘jquery’ ), ‘2.0’, false );wp_enqueue_script( ‘jquery’ ) wp_enqueue_script( ‘jquery-ui’ ); wp_enqueue_script( ‘jquery-ui-tabs’ );