WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Weird duplicate path bug in my background property (8 posts)

  1. rgbk
    Member
    Posted 4 years ago #

    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

  2. s_ha_dum
    Member
    Posted 4 years ago #

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

    Can you provide a real URL?

  3. rgbk
    Member
    Posted 4 years ago #

    http://moresoon.org/2

    Thanks,
    Marc

  4. s_ha_dum
    Member
    Posted 4 years ago #

    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 .

  5. rgbk
    Member
    Posted 4 years ago #

    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.

  6. rgbk
    Member
    Posted 4 years ago #

    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?

  7. s_ha_dum
    Member
    Posted 4 years ago #

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

  8. rgbk
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic