Library items are elements that you want to reuse or update frequently throughout your website.
The user interface has been simplified in Dreamweaver CC and later. As a result, you may not find some of the options described in this article in Dreamweaver CC and later. For more information, see this article.
Create a library item
Insert a library item into a document
When you add a library item to a page, the actual content is inserted in the document along with a reference to the library item.
To insert the contents of a library item without including a reference to the item in the document, press Control (Windows) or Option (Macintosh) while dragging an item out of the Assets panel. If you insert an item this way, you can edit the item in the document, but the document won’t be updated when you update pages that use that library item.
Edit library items and update documents
When you edit a library item, you can update all documents that use that item. If you choose not to update, the documents remain associated with the library item; you can update them later.
You can rename items to break their connection with documents or templates, delete items from the site’s library, and recreate a missing library item.
The CSS Styles panel is unavailable as you edit a library item, because library items can contain only body elements and Cascading Style Sheets (CSS) code is inserted in the head section of a document. The Page Properties dialog box is also unavailable, because a library item can’t include a body tag or its attributes.
To update all pages in the selected site to use the current version of all library items, select Entire Site, then select the site name from the adjacent pop‑up menu.
To update all pages in the current site that use the library item, select Files That Use, then select a library item name from the adjacent pop‑up menu.
When you delete a library item, Dreamweaver removes it from the library but doesn’t change the contents of any documents that use the item.
Customize highlighting of library items
You can customize the highlight color of library items and show or hide highlighting by setting Highlighting preferences.
Edit the properties of a library item
You can use the Property inspector to open a library item for editing, detach a selected library item from its source file, or overwrite an item with the currently selected library item.
Displays the filename and location of the source file for the library item. You can’t edit this information.
Opens the library item’s source file for editing. This is equivalent to selecting the item in the Assets panel and clicking the Edit button.
Detach From Original
Breaks the link between the selected library item and its source file. You can edit the detached item in the document, but it’s no longer a library item and isn’t updated when you change the original.
Make library items editable in a document
If you’ve added a library item to your document and you want to edit the item specifically for that page, you must break the link between the item in the document and the library. Once you’ve made an instance of a library item editable, that instance isn’t updated when the library item changes.
Edit a behavior in a library item
To edit a behavior in a library item, you must first insert the item in a document, then make the item editable in that document. After you’ve made the changes, you can re-create the library item, replacing the item in the library with the edited item from your document.