Skip to main content
Participant
August 9, 2017
Answered

Unable to edit HTML code in Dreamweaver CC

  • August 9, 2017
  • 1 reply
  • 5689 views

Hi everyone,

I have used Dreamweaver for many years, and up until it became Dreamweaver CC the program and I had a wonderful relationship.  In the last two months, however, I am now unable to even make small edits to HTML code in the code window, in either Live or Design mode.  I went as far as detaching the template from the page (which I did not want to do) and it still will not work properly.

The page in question is here, if you need to take a look.  If I can't get this fixed in the next day or so I will have to look for another program to use from now on.

http://www.lifechristiancounseling.com/counselors.htm

All I am trying to do is small edits and commenting one counselor profile out.

Thanks.

Lynn

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

    Hi Nancy,

    I understand what you are saying but I had already detached the template so there was no longer any template in use and except for one section with script tags, there are no errors that could not be easily cleaned up by editing the code.  It is now a "standalone" page and I should simply be able to edit it, comment portions out, correct spelling problems, etc.  Why would this capability be removed from a program in which it used to exist? 

    Just frustrated that something so simple would no longer be part of a program I've been using for well over a decade.  A menu option could be added that that allows users to edit the code, regardless of whether it is a template, child page, etc. 

    I addressed today's problem using Jon's suggestion, and created a new page with the same name, copying all of the code that came before the one small section mentioning CSS styles, then copying everything after that section, that was blocking me from being able to edit the code.

    Will keep using DW CC but for older sites will use some other program from now on.  The program may be great for developers, but for minor changes, it's just too much of a learning curve and and too bulky for simple page modifications.  I didn't create the pages I'm working on, but took on the weekly maintenance, so this is what I have to work around.

    Thanks to you and Jon for your help today, I really appreciate it. 

    Lynn


    Please show us the code you're trying to work with. 

    I suspect the so-called detached file is not fully detached from a template. Or possibly you had been using a nested template which further complicates matters.  Until that's resolved, you'll need to open the file in another plain text editor that doesn't recognize Templates like Notepad, Brackets or Text Wrangler to fix the code problems.

    Nancy

    1 reply

    Jon Fritz
    Community Expert
    Community Expert
    August 9, 2017

    I don't see any Editable Regions set up aside from the one in the <head> section.

    If your .DWT Template file has no Editable Regions, you won't be able to make modifications to child pages created from the it.

    Participant
    August 9, 2017

    Hi Jon,

    I detached the template, so it's just a single page, no editable regions required.  I see the code you are talking about, but how do I edit out the "head" information in this file and the style information within it?  DW will not let me edit the code and simply remove it.

    I guess my real question is, is there a preference I can use in DW CC to override the program ability to prevent me from editing the code?

    Thanks!

    Lynn

    Jon Fritz
    Community Expert
    Community Expert
    August 9, 2017

    I truly despise DWT Templates and have used server side includes for anything that would seem to "require" a .DWT since CS4. It's just a much simpler way to work. A small include file containing only the html needed for any repetitive content, like menus, is linked to from your pages. When a change is needed, only that include file is updated and uploaded to the server. The server then adds the updated html to every page linking to it automatically.

    Personally, if I were forced to continue using Templates, I would create a new child page from the .DWT file, copy the correct information over to it from the "bad" file, then save over the "bad" file with the newly (and presumably correctly) created child page.