locked
Expression Web 3 Title RRS feed

  • Question

  • How do I edit the Title Tag in EW3 on pages a template was used? Is it possible?
    Tony
    Monday, September 19, 2011 8:47 PM

Answers

  • The <title> tag should be in an Editable Region in the template.  For each page, edit it in Code View or use Page Properties.

    • Marked as answer by Tony Boston Wednesday, September 28, 2011 7:36 PM
    Monday, September 19, 2011 8:51 PM

All replies

  • The <title> tag should be in an Editable Region in the template.  For each page, edit it in Code View or use Page Properties.

    • Marked as answer by Tony Boston Wednesday, September 28, 2011 7:36 PM
    Monday, September 19, 2011 8:51 PM
  • Kathy

    I tested this by opening one of the pages attached to the template and simply cut the Title and pasted it above the non-editable area and it worked.  Having done this, might I create other issues that I'm not anticipating?

    Has the ability to do this been changed in EW 4?

    Tony


    Tony
    Monday, September 19, 2011 9:00 PM
  • If and when you change the DWT anything you changed in non-editable areas will be overwritten and revert to the DWT content.

    There is no dofference in this behaviour between xWeb 2, 3 or 4 as far as I'm aware.


    Ian Haynes

    EW V4 Add-Ins
    EW resources, hints and tips
    Monday, September 19, 2011 9:08 PM
  • In the template, can I simply move the title tag above the head tag to remove it from the editable region?
    Tony
    Monday, September 19, 2011 9:15 PM
  • The title needs to be inside the <head> section.  Is it?  And for a page that is based on a template, the only things you should change are in Editable regions, or they will be overwritten when you make a change to the template.

    Put the <title> tag in an editable region in the template, inside the <head> tag.

    Monday, September 19, 2011 9:16 PM
  • Should I move the Title tag inside this code (it was down about 60 lines)?

    <!-- #BeginEditable "Body" -->
                <p>&nbsp;</p>
                <!-- #EndEditable --></div>
            <div id="COL-B">
                <!-- #BeginEditable "Ads" -->
                <!-- #EndEditable -->


    Tony
    Monday, September 19, 2011 9:20 PM
  • No.  I'll repeat myself again.  Put an editable region inside the template's <head> tag, and put the title tag inside that.  Not inside the <body> tag.  (There should be an editable region already there unless this is an old template.  New ones created in EW put one there.)
    Monday, September 19, 2011 9:27 PM
  • This is the code; I don't see an editable section.  Do you?

     

    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Free Computer Training at Teach An Old Dog New Tricks</title>
    <meta content="Free Computer Training includes Computers 101, ACT!, Microsoft Word, Excel, PowerPoint, Outlook and FrontPage" name="description" />
    <link href="secondary.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .style3 {
        text-align: right;
        right: 15px;
    }
    .style4 {
        color: #000000;
    }
    </style>
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-18437349-1']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>
    </head>


    Tony
    Monday, September 19, 2011 9:31 PM
  • No, you have to make one yourself. As kathy said, Put an editable region inside the template's <head> tag, and put the title tag inside that.

    You can make editable regions anywhere you want in a DWT.

    Create the editable region and then put the Title tag in it.


    Some people are like Slinkys; not really good for anything...but they still bring a smile to your face when you push them down a flight of stairs.
    Monday, September 19, 2011 9:42 PM
  • Your head section should look like this:

     

    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <!-- #BeginEditable "doctitle" -->
    <title>Free Computer Training at Teach An Old Dog New Tricks</title>
    <meta content="Free Computer Training includes Computers 101, ACT!, Microsoft Word, Excel, PowerPoint, Outlook and FrontPage" name="description" />
    <!-- #EndEditable -->
    <link href="secondary.css" rel="stylesheet" type="text/css" />
    <!-- #BeginEditable "pagespecific" -->
    <style type="text/css">
    .style3 {
     text-align: right;
     right: 15px;
    }
    .style4 {
     color: #000000;
    }
    </style>
    <!-- #EndEditable -->
    <script type="text/javascript">
     
      var _gaq = _gaq || [];
       _gaq.push(['_setAccount', 'UA-18437349-1']);
       _gaq.push(['_trackPageview']);
     
      (function() {
         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       })();
     
    </script>
    </head>

    The doctitle section should be put in by default and you want any page level styles to go in an editable region below the external stylesheet link. Which is why I recommend adding a second editable region in the head section for page level items like a style block and scripts used only on one page.


    Free Expression Web Tutorials
    For an Expression Web forum with without the posting issues try expressionwebforum.com
    Monday, September 19, 2011 10:59 PM
  • You can - but why?
    If you did every page attached to the DWT will have the same <title> - not a good thing for SEO.
    The <title> tag is placed in an editable region when a DWT is created, and should be in an  editable region in any purchased or provided template.


    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp
    Tuesday, September 20, 2011 6:01 AM
  • I'm not certain, but I think the original issue had its roots in the fact that the original template was created in FrontPage.  Subsequent templates in EW don't seem to have this issue.
    Tony
    Wednesday, September 28, 2011 7:35 PM
  • DWTs created by FrontPage are the same as those created by Expression Web, with only one difference: The !doctype is complete and valid in Expression Web, FrontPage !doctypes (if any are on the page) are not complete (missing the URL part).

    As far as the <title> tag goes, both FrontPage and EW place the tag in editable regions, such as:

    <!-- #BeginEditable "doctitle" -->
    <title>New page 1</title>
    <!-- #EndEditable -->

    when a DWT is created by creating a new page, then File->Save As and choosing DYnamic Web Template as file type - the editable region around the <title> is placed there when the page is saved as a DWT.

    The missing editable region in the <head> of the page is not a FrontPage fault - it is whoever edited (and removed) the region, or the DWT was not created IN Frontpage or EW but by some other means - Notepad, perhaps?


    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp
    Wednesday, September 28, 2011 8:50 PM