Create a subtitle widget
2 min
Important
Classic CMS reached end-of-life in January 2025 and is no longer receiving feature updates or bug fixes. You should [migrate to Spire CMS](../../End user docs/spire-cms/get-started-with-spire-cms/migrate-from-classic-cms-to-spire-cms.mdx).
- Create a new class and derive from AbstractWidget.
- Add members to the class applicable for the custom widget. In this case, a string Title property.
- Decorate the members with the corresponding attribute types. The Title property in this example is a textbox.

- Create a new folder with the same name as the widget in the [theme]/Content folder.

- Edit the markup in the view to display the widget.

Content_Management_with_Widgets_31.png