Reputation: 79
My website is www.rosstheexplorer.com
When the device width is greater than 601px I want the following to happen
Look at www.nomadicmatt.com for an idea on what I want to achieve.
Upvotes: 0
Views: 81
Reputation: 3213
I don't think you are loading the required Bootstrap CSS and JS properly.
Loading http://www.rosstheexplorer.com/wp-content/themes/penscratch/css/bootstrap-3.3.7.css
results in a 404 error (not found), and http://www.rosstheexplorer.com/wp-content/themes/penscratch/js/bootstrap.min.js
does as well.
So find your enqueue functions that look like this:
wp_enqueue_style( 'bootstrap_css', get_template_directory_uri() . '/css/bootstrap-3.3.7.css' );
wp_enqueue_script( 'bootstrap_js', get_template_directory_uri() . '/js/bootstrap.min.js' );
And change them to:
wp_enqueue_style( 'bootstrap_css', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' );
wp_enqueue_script( 'bootstrap_js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js' );
Upvotes: 1
Reputation: 116
You refer to the bootstrap-3.3.7.css in your head but this file doesn't exist on your server/at this address. You could use a CDN to load boostrap css and js so you won't have to bother having those files on your server, just add these two tags within the head tag:
CSS:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
JS:
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
Upvotes: 0