Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Multiple CSS being Generated When Attaching One

Contributor ,
Jan 08, 2023 Jan 08, 2023

The first image is with no attached CSS

screen_2023-01-08 21.59.38.jpg

 

Then I attach one CSS and I get multiple attachments. Sometimes more than just one extra.

screen_2023-01-08 21.57.38.jpg

 

None of the attched sheets perform as the should.

 

Any idea folks?

TOPICS
Code , Error
577
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2023 Jan 08, 2023

Spry, lightbox, jquery -- this must be a very old site.

  • Spry has been fully dead since 2012.
  • I don't even remember when Lightbox ended.
  • And jQuery is being phased out and replaced with plain vanilla JS or other JS libraries.

 

Code errors are almost always caused by other code errors elsewhere in your site.

Start by validating HTML and fix reported errors.  

1. Window > Results > Validation. 

2. Click the triangle to check document. 

3. Repeat on other documents in your site.

 

Failing that, try Restoring Preferences as described below.

https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver.html

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 09, 2023 Jan 09, 2023

Yes Nancy it's probably 15/20 years old.

It's a photography site so I only ever add or remove photos.

Unfortunately the contact links have been disabled by my domain host, so to temporary get round this I wanted to add a contact form, and this is where the problems started.

Tried validating (Didn't know about this, love it). It did find a couple of things but they weren't related.

Tried the reset you suggested but this din't work either, so I uninstalled DW and then reinstalled it.

Again not fixed.

What I have noticed is the addresses of each CSS file.

One is on my PC path, the path I entered, but the other is showing an http location.

Does this help?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2023 Jan 09, 2023

Can we see the page online?  A thought I'm having is that your CSS file might include the other CSS file in which case you could get both.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 09, 2023 Jan 09, 2023

Hi Ben.

I checked my CSS file and there's no reference to another file.

It's an extremely small CSS file. See below.

 

body {
    width: 95%;
    height: auto;
    margin: 0 auto;
    padding-top: 20px;
    padding-left: 50px;
    padding-bottom: 60px;
    background-color:#D7D5F0;
}
.reply {
    margin-top: 50px;
    border: solid 3px blue;
    width: 15em;
    background-color: white;
    font-size: 25px;
    color: #4763E7;
    padding: 20px;
}
.replyphoto {
    float: left;
    width:fit-content;
    height:fit-content;
    box-shadow: 20px 20px 20px #5A5A5A;
}

 

 

By online do you mean my URL?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 09, 2023 Jan 09, 2023

Something I just tried.

I generated a new CSS file with a totally different name, and placed it in my CSS folder, then attached it using DW.

<link href="/css/New.css" rel="stylesheet" type="text/css">

This time it didn't generate multiple CSS links, but it still gives the wrong path.

Also this New file has no affect on my page.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 09, 2023 Jan 09, 2023

I just found a sulution.

Why DW was doing this beats me. I don't know DW well enough.

I went into sites and deleted my photos site, and now everything is working fine.

Thanks Nancy and Ben for helping.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2023 Jan 09, 2023
LATEST

Based on info provided, I think there's a problem with your Site Definition settings.   See screenshots below.

 

Local Site = a folder of files on your primary hard drive (C:\MySite\).

Remote Site = the files on your remote server (https or http).

 

CC-localsite.jpg

 

CC-RootFolder.jpg

 

Advanced Settings > Local Info

image.png

 

LINK PATHS:

Document relative -- .../folder/filename, used by most sites.

Site root relative = /folder/filename,  used by experienced developers.

Absolute = https or http:// example.com/folder/filename, used in emails.

 

Hope that helps.  Post back if you have more questions.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines