Skip to main content
Known Participant
March 6, 2021
Answered

Re: Dreamweaver Image Issue

  • March 6, 2021
  • 1 reply
  • 1140 views

I'm having the same or similar issue. We also have site root relative paths set but when I followed your directions above, the setting was already set to Document. 

 

I had this code which worked fine:

 

background:transparent url(_images/globalNavGradient.png) repeat-x;

 

I wanted to change it to a new image, so I copied what had worked above with the new image name:

 

background:transparent url(_images/globalNav.png) repeat-x;

 

I can see the globalNav.png in my _images folder, but when I add it to my code - in every way I can think of - it still shows that the image doesn't exist. I've tried with quotes, without quotes, with leading slash, without leading slash. I've tried just using the background-image property instead of the shortcut. Nothing makes a difference.

 

I can go down the list of images in my _images folder. SOME of them, I can add and DW will recognize them, but others - that I can see are there - DW doesn't recognize them. Also, even the ones DW does recognize (meaning they show up in the suggested list DW gives me when I use the browse function) don't always show up in my localhost. SOMETIMES they do - but more often, they don't. The fact that some work and some don't makes me pretty sure it's not a path issue - also the fact that the original image that DOES work uses that same path. A caching issue? Something else?

 

Would love to have some help. Been working on this for a couple of hours. 

    This topic has been closed for replies.
    Correct answer Nancy OShea

    Your dummyimage.com placeholder works for both.

     

    The CSS file, document, and image are all located in separate files off the root:

     

    _images/

    _styles/

    _templates/

     

     


    OK, so you have a path problem. 

     

    Try this:

    background: url(../_images/globalNav.png) repeat-x;

     

    Just to clarify, the Templates folder (not _Templates) is for the DW Template.dwt files only.  If you're using DW's proprietary Templates for your site, you must never rename or move the Templates folder.  Doing so will cause your site to break.

     

    1 reply

    BenPleysier
    Community Expert
    Community Expert
    March 6, 2021

    Because the previous disussion was answered, I have moved this to a new discussion. This will attract more respondents.

     

    This is the previous discussion.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Known Participant
    March 6, 2021

    Thanks, Ben. In the meantime, I've done some more testing - no solution - but some more things to rule out:

     

    1. Ctrl+F5, clearing cache, rebooting don't help.

    2. I thought maybe the issue was that this particular style is on a style sheet that's linked to the main stylesheet. Since we also have site path constants for the style sheets, I thought maybe moving it to the top style sheet would help. I moved the style to the very top of the main style sheet. Right under body,html. NO difference. In other words, the original style still worked fine:

     

    background:transparent url(_images/globalNavGradient.png) repeat-x;

     

    The new style - based on a copy/paste of the above, did not:

     

    background-image: url(_images/globalNav.png) repeat-x;

     

    Also tried renaming the id of the style from id="globalNav" to id="globalNav1". Same result - original style works, new one doesn't. 

     

    And then there's this one which is a REAL kicker:

     

    I tried taking both images - _images/globalNav.png and _images/globalNavGradient.png and just putting them in a regular page as img tags. When I hover over both in DW, it says "Image not found" (and neither showed up in the suggestion prompts). HOWEVER, when I refreshed localhost, now the NEW one (globalNav) shows up in localhost but the original one (globalNavGradient) does not.

     

    This kinda sounds like a bug of some sort? Although I'd love it if someone could hep figure out a fix or workaround. I really thought moving it to the main stylesheet would fix it - because of the site path/relative path issue DW has. But it didn't.

    Nancy OShea
    Community Expert
    Community Expert
    March 6, 2021

    @designer_shrink,

    Did you define your local site folder and does it reside on your primary hard drive -- not a networked or cloud drive?

     

    Are you using a local testing server and is it running?

    Are the images on the local testing server?

     

    Nancy O'Shea— Product User & Community Expert