Thread: Include file woes!
Results 1 to 15 of 17
09-18-2003, 10:01 AM #1
Include file woes!
I am trying to use include files to include the code for a menu that goes across the top of each page. The page looks fine when I open it (haven't uploaded yet). But when I click to any page using the menu, it goes all wierd like it isn't seeing the include file. Is there any reason for this? How can I fix it?
09-18-2003, 10:02 AM #2
09-18-2003, 10:09 AM #3
I have the pages online without includes, since I don't have them working yet. It's http://www.manhattanloft.com
What I'm doing is just cutting the header code out with all the scripts etc. and making that one include, then the menu bar is another include, and the drop down menu info at the bottom is another include. So far I've done the header include on all my pages and am having the above problem. If you want me to post examples in another place I can.
09-18-2003, 10:14 AM #4Originally Posted by Webeauty
please do post the url of a page with includes so we can see exactly your code and what is happening.
09-18-2003, 10:21 AM #5
ok, I'll have them up in just a minute. Thanks for taking the time to help!
09-18-2003, 10:37 AM #6
OK, I uploaded a handful of pages and they seem to be working. It's wierd cuz locally, I was having that problem I described. I want to be confident that they will work before I upload them all into the main folder. Can you take a look anyway? http://www.manhattanloft.com/testing The pages I uploaded are About Us and Chairs, under livingroom.
09-18-2003, 10:40 AM #7
While you are looking at this, I would really like your opinion on this: for search engine purposes should I change the drop downs on the menu to text? If they are include files will the search engine see them? How would you go about this? My client relies very heavily on search engines for traffic.
09-18-2003, 10:41 AM #8
09-18-2003, 10:43 AM #9
Good point! But I do see the includes fine when I open the file locally and preview it in browser. It's when I click on the menu to another file that it gets all barfy. Maybe the code is just fine...i don't know. How do I check this setting?
09-18-2003, 11:02 AM #10
09-18-2003, 11:04 AM #11
sorry, above I mentioned it. I loaded the About Us page and CHAIRS page under the livingroom category. Thanks for your help!
09-18-2003, 11:52 AM #12
Crap! I uploaded the files and the product pages are showing errors. Please take a look at http://manhattanloft.com then click on CHAIRS or SOFABEDS. If you click on a thumbnail to go to a product page, the page is messed up. ????
09-18-2003, 12:28 PM #13
Looks as though you have already removed the test page so I cannot be of help there. I see no problems, but when you say "messed up" I may not be seeing what you intended.
09-18-2003, 02:54 PM #14
09-18-2003, 08:14 PM #15
OK, I actually got it all working ok. I took the test pages out and just put everything in the main folder. For some reason it would only work if I put the includes in the same folder. It didn't like the "../" thing.