Not a developer? Go to MovableType.com

Documentation

WebsiteThemeID

Outputs the ID of the theme currently applied to the website in context. The identifier is modified such that underscores are changed to dashes.

Modifiers

  • raw="1"

    Use a value of 1 to prevent underscores from being automatically converted to dashes. This modifier was added to Movable Type 6.0.4.

Example

One use for this is to output the WebsiteThemeID as the HTML “body” ID to make targetting for styling easier:

<body id="<mt:WebsiteThemeID>">
    ...
</body>
Back

1 Comment

Elmer Gler on August 31, 2012, 5:42 a.m. Reply

I can’t understand, what are the benefits of providing the ID number of the theme I use in my Moveable type? When this line is useful?