Solved

Mobile menu works on local network but not on server

Posted on 2013-12-09
5
344 Views
Last Modified: 2013-12-09
If you visit conutils.com you will find the mobile menu does not work.

These exact files run on my local network.

They are .php files could the php configurations on my server be the problem?

I am using the bootstrap css framework or whatever they call it.
0
Comment
Question by:burnedfaceless
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 total points
ID: 39707089
looks like you're loading bootstrap before jquery.

bootstrap depends on jquery, so you have to switch the order.

<head>
....
<script src="https://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
...
</head>

Open in new window


in fact, you're loading jquery at least twice. that's bad. remove the one at the bottom of the page.
0
 

Author Closing Comment

by:burnedfaceless
ID: 39707098
Wow what an idiot mistake I made.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39707099
This...

<script src="../../dist/js/bootstrap.min.js"></script>

is showing 404 not found.

This... <script src="https://code.jquery.com/jquery.js"></script>

and this...  <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>

are two different versions/copies of jQuery v1.10.2 .  You should probably have only one.
0
 

Author Comment

by:burnedfaceless
ID: 39707147
I took out everything at the bottom. I kept the code at the top the one I am assuming is the latest version.

Thanks that was a major brain fart.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39707210
I was still checking and typing when @ kozaiwaniec posted an answer for you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question