Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm doing a little bit of work on a theme I just inherited from another developer. The site just broke, and I'm trying to fix it.

You can see the site here: www.bowlingventures.com

What's happening is this. As you can see, the home page loads unstyled. All of the images are being pushed out using "bloginfo('template_directory');" If you click on one of the links to another page, you'll see that that page loads correctly. Inspecting the page source, the paths to the image directory differ slightly. Both paths are output using "bloginfo('template_directory');" Additionally, when logged in, the home page loads just fine. How is this possible? Also, I tried adding some information to the header.php template file to be printed on every page. This information was only visible on the non-home pages.

Heads up, the site is slow  I'll be fixing that later today.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

First thing I noticed is that your secondary pages link to images using a URL like:

http://www.bowlingventures.com/BVc_13/wp-content/themes/bowlingventures/images/m2u.jpg

whereas your home page uses:

http://www.bowlingventures.com/wp-content/themes/bowlingventures/images/m2u.jpg

Not sure this helps, but perhaps this will help someone else figure out what is going on.

Are you sure that the home page is being loaded from WordPress?

share|improve this answer
    
Yes, that is the problem. On the secondary pages, the "BVc_13" part of the url is correct. The homepage omits that. I am positive. At least, there is a home.php template file in the theme directory that mirrors the code that the browser sees... –  Josh Infiesto Aug 29 '11 at 21:12
    
What's in the "BVc_13" directory on your server? Is there a full WordPress install? –  tollmanz Aug 29 '11 at 21:14
    
It's the directory where all of the Wordpress stuff is. In the root directory of the server, there's a php file that includes stuff from the Wordpress folder. –  Josh Infiesto Aug 29 '11 at 21:27
    
That's likely the problem. The files should be in the root of the directory, or at least they should not be included from another file within the directory. This is a recipe for disaster. –  tollmanz Aug 29 '11 at 21:36
    
That's what I thought. I'll try that. It was installed that way for "security reasons" I'm not really clear on... –  Josh Infiesto Aug 29 '11 at 21:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.