Layout Issues Using Version 3 Templates with Version 4 Stylesheets

A problem that comes up every so often on the Movable Type forums is the mixing of recently upgraded system, old Movable Type version 3.x templates and Movable Type version 4 stylesheets. In layman terms "The layout is buggered" or "The syles don't show".

A reason for this is that a number of the divs (html code that allows use to define parts of a page) had their names changed from a functional name such as banner to a semantic name such as header, so your site looks as if it has lost its style. At this point you have three choices:

  1. Start from scratch using new templates and new stylesheets.
  2. Rename all the styles in the stylesheets.
  3. Rename all the divs in your templates.

Each option has it's pros and cons. If you start from scratch you will have to redo any additional customisation you have made. If you rename the styles in the stylesheet upgrades may overwrite them, my preferred option is to rename the divs in the template. the following is a non exhaustive list of name changes

banner -> header
banner-inner -> header-inner
banner-header -> header-name
banner-description -> header-description
pagebody -> content
pagebody-inner -> content-inner

Also the names of the various layouts have been shorten, see my previous post Changing Number of Columns on a Page

Leave a comment

Gallery

Recent Entries

  • Now on YouTube

    Once in while, when answering questions on the Movable Type IRC channel or the support forums I find it easier to show rather than tell,...

  • Using jQuery with Movable Type

    Introduction jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development Today...

  • HashTag now on GitHub

    I have moved the source code for HashTag from my private SVN over to GitHub. If you want to contribute any changes you can find...

  • HashTag 2.5 Released

    Version 2.5 of my HashTag plugin has now been released. See the Hash Tag Plugin project page for more information. The major change in 2.5...

  • Hash Tag Beta 2.5 Now With Scheduled Post Support

    I have now added support for scheduled publishing in my HashTag plugin. It is currently a beta and can be downloaded from this link HashTag...

Close