0

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.

1 Answer 1

1

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?

7
  • 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... Aug 29, 2011 at 21:12
  • What's in the "BVc_13" directory on your server? Is there a full WordPress install?
    – tollmanz
    Aug 29, 2011 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. Aug 29, 2011 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, 2011 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... Aug 29, 2011 at 21:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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