ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Another Newbie URL/Relative Path Question

September 05, 2007 4:53pm

Subscribe [1]
  • #1 / Sep 05, 2007 4:53pm

    mrjasonsweet

    8 posts

    Using the Core files, I’ve hopelessly confused myself.

    Here’s my sample site, based on the Fresh template:

    Link to Example

    I don’t think, however, that I uploaded the templates images to proper folder.  In fact, I don’t know which folder to use.

    Looking in General Configuration, I see the URL to the themes folder is:

    http://www.sbwebhost.com/ee/themes/

    Is this proper?

    From reading, I realize that I can put the Images folder anywhere but what I can’t wrap my head around is the relation between the site’s themes folder and the relative URLs found in the CSS file.

    Thanks in advance for your feedback.

  • #2 / Sep 05, 2007 8:39pm

    Robin Sowell

    13255 posts

    I’ll generally look at the rendered code- treating it pretty much like an html page- to figure out what’s up.  I checked for broken links- the broken ones are looking in http://www.sbwebhost.com/ee/images/logo.gif - so, I hunt down one of the links- find it in the css:
    url(images/bg_main.gif)

    It’s using a relative url.  Hence- the bad links.  I personally would use the full url:
    url(http://www.sbwebhost.com/images/bg_main.gif)
    Assuming you put your site images in the images folder.  I’ll generally put them in images/site- but wherever.  Just make sure the rendered urls are correct.  It’s entirely possible the images are in themes/site_themes/fresh/images/ - or something along those lines.  But as you say- you can put them pretty much anywhere.  Just make sure the resulting links are pointing where you think they are.

    Make sense?

  • #3 / Sep 07, 2007 10:37am

    mrjasonsweet

    8 posts

    Thanks for your help Robin and yes, it does make sense.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases