Skip to main content
January 4, 2023
Answered

DW template issues

  • January 4, 2023
  • 1 reply
  • 855 views

Seriously, what is going on with DW at the moment? This programe has gone to pot. What on earth is going on with their templates? I have created a template, then clicked File > New > Site Template, seleced the template I wanted, and all the editible regions have dissapeared, meaning that I can edit all the text which I place outside the editible regions in the first place.

 

In addition to this, despite placing a link to the CSS document in the header and outside of the editible regions, none of the CSS is updating in new documents. It says it does via the Log, but the CSS does not update.

 

Literally stumped, I have used DW for 5 years and I have never had these silly, silly, stupid, ridicilous issues before. 

 

Really don't need this. 

    This topic has been closed for replies.
    Correct answer BenPleysier

    Sorry Ben, I didnt see the link you also posted. 


    To elaborate on my reply, if this is the template file

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    	<link rel="stylesheet" href="../styles.css">
    </head>
    
    <body>
    <!-- TemplateBeginEditable name="content" -->
    <h1>My Title</h1>
    <!-- TemplateEndEditable -->
    </body>
    </html>
    

     

    Then the child file will look like

     

    <!doctype html>
    <html><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta charset="utf-8">
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    	<link rel="stylesheet" href="styles.css">
    </head>
    
    <body>
    <!-- InstanceBeginEditable name="content" -->
    <h1>My Title</h1>
    <!-- InstanceEndEditable -->
    </body>
    <!-- InstanceEnd --></html>
    

     

    Notice the difference in the link to the style sheet. This was explained in the help document.

     

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    January 4, 2023

    You've given us nothing to go on. 

     

    CSS works everytime for me.  But it must be a) editable, b) valid code and c) saved and populated to child pages.

     

    Open your Template .dwt and show us your Editable region for the CSS.  If using an external CSS file, where does it reside in your site structure?

    And is the code error-free? Refer to the online code validation service below.

    https://jigsaw.w3.org/css-validator/

     

    Nancy O'Shea— Product User & Community Expert
    January 5, 2023

    As an update DW has now decided to honor the non-editable regions so hopwfully it won't have another hissy fit in that department. However, I have attached a screenshot of the external link to my CSS file. 

    It applies the CSS document when I create a new HTML document from my template but when I save it, then open it back up, the CSS is ignored. I have been using DW for about five years and I have never had this issue prior so unless DW has had a major update that I was unaware of - and update that requried an addition step in loading an external CSS document, or I'm slowly losing my faculties, I fail to see what I am doing wrong. 

     

    The CSS file is in the <head> section of the HTML document, where I have always placed this nd where this is supposed to go. I have also moved this to immediately after the <head> tag, with the same result. 

     

    Seriously

     

    BenPleysier
    Community Expert
    Community Expert
    January 5, 2023

    I hope that you realise that we do not see or experience what you are talking about.

     

    quote

    As an update DW has now decided to honor the non-editable regions so hopwfully it won't have another hissy fit in that department.

     

    Seriously

    By @18187696

     

    Dreamweaver does not decide anything, it does exactly what it is told to do. I have a faint suspicion that the instructions were not free of errors.

     

    As far as the style sheet is concerned, if styling does not show up in your page, then I'll bet the link to the style sheet is incorrect. This is assuming that the style rules are free of errors.

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