Support » Themes and Templates » Weird duplicate path bug in my background property

  • Resolved rgbk

    (@rgbk)


    Hi,
    I have this code in my templates css:
    body {background:url(images/bg.jpg');}

    “bg.jpg” is in the images folder directly in my template folder.

    When i preview this page in Panic Coda, it shows up fine in local tests.

    When I publish it to online, it can’t find the file.

    I checked the path and it’s for some reason duplicated the theme folder.

    So instead of being at
    http://mysite.com/wp-content/themes/mytheme/images/bg.jpg

    it’s at
    http://mysite.com/wp-content/themes/mytheme/mytheme/images/bg.jpg

    Does anyone know why this might be happening?

    Actually whats really weird is that when i inspect the source in Panic Coda, it also shows the double them folder error, but it shows it correctly. There is no theme duplicate within my them folder either, so i have no idea why it’s finding it there either.

    Thanks,
    Marc

Viewing 7 replies - 1 through 7 (of 7 total)
  • s_ha_dum

    (@apljdi)

    You do have a typo in that code. There should be a single quote before ‘images’.

    Can you provide a real URL?

    rgbk

    (@rgbk)

    http://moresoon.org/2

    Thanks,
    Marc

    s_ha_dum

    (@apljdi)

    There is no theme duplicate within my them folder either, so i have no idea why it’s finding it there either.

    Yes, you do have nested theme folders in your install– http://moresoon.org/2/wp-content/themes/grid-a-licious/grid-a-licious/style.css .

    rgbk

    (@rgbk)

    whoaaa, how is that happening?
    My apologies.
    I really dont get why it’s in another folder.

    By the way do you get notified via email if i respond? I cant find this anywhere, i only see RSS feed for this topic on the right.

    rgbk

    (@rgbk)

    OK, for some reason, when i upload the template it automatically puts itself in itself.
    I took grid-a-licious, zipped it, then added it via the backend, and activated it. Why is it doing this?

    s_ha_dum

    (@apljdi)

    I’m guessing you added the directory when you zipped it. Just upload the unzipped plugin via FTP and forget that backend installer nonsense.

    rgbk

    (@rgbk)

    no i took the files out this time. It’s generating the inner grid-a-licious folder when it unzips. So weird.
    I tested another theme downloaded from the net and it works just fine.

    I’ll try your recommendation.

    Ack so boring these weird little bugs!

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Weird duplicate path bug in my background property’ is closed to new replies.