Office Settings & Configuration

How to Add an Online Image Source Type to Word 365 Citations

Natalie TaylorNatalie Taylor Oct 21, 2026 868 views

Question details

The user needs to add a custom "Online image" option to the Type of Source drop-down list in Microsoft Word 365 citations by modifying a Harvard XML style sheet.

How to Add an Online Image Source Type to Word 365 Citations
Product
Microsoft Word 365
Device & OS
Windows
Scenario
Customizing bibliography and citation style sheets for academic or professional document referencing.
Observed behavior
The "Online image" source type is missing from the default Word citation options and must be manually coded into the reference XML file.
Before you start

Before modifying any system files, ensure you create a backup copy of the original XML reference style sheet. You will also need administrator privileges to save changes in the Program Files directory.

Solution 1Recommended

Edit the Bibliography XML File in Word 365

Manually insert the custom source type definition into the Word 365 bibliography style file using a text editor.

Microsoft Word handles its reference and citation formatting through XML files. To add a custom source type like an Online Image to a specific style (such as Harvard), you must edit the underlying XML structure directly.

1
Locate the Style folder

Open File Explorer and paste the following path into the address bar: C:\Program Files\Microsoft Office\Root\Office16\Bibliography\Style. Press Enter to navigate to the directory containing your Word reference styles.

2
Open the XML file with a text editor

Locate the specific Harvard style XML file you want to modify (e.g., HarvardAnglia2008OfficeOnline.xsl). Right-click the file, select 'Open with', and choose a text editor such as Notepad. If prompted, confirm that you want to open it as an administrator.

3
Insert the new source type code

Search the document for the <SourceType> section. Carefully paste your custom XML code for the 'Online image' entry into this block, ensuring the tags and structure perfectly match the surrounding existing entries.

4
Save changes and restart Word

Save the modified XML file. Close the text editor and completely exit Microsoft Word 365. When you relaunch Word, the new 'Online image' option will appear in the Type of Source drop-down list in the Citations manager.

Edit the Bibliography XML File in Word 365
Administrator Permissions Required: Because the bibliography style folder is located within the system's Program Files directory, you may receive an 'Access Denied' error when trying to save. To bypass this, open Notepad as an administrator first, then use File > Open to locate and edit the XML file.
WPS Office Writer

Easily Manage Citations and References in WPS Office

If manually editing complex XML files for citations feels overwhelming, WPS Office offers a straightforward, built-in reference management system. You can easily format, insert, and manage document citations without any coding.

  1. 1. Open your document: Launch WPS Office Writer and open your academic or professional document.
  2. 2. Access the References tab: Navigate to the 'References' tab located on the top ribbon menu.
  3. 3. Insert a citation: Click on 'Insert Citation' to open the source manager, allowing you to select from various built-in source types.
  4. 4. Fill in source details: Input the required bibliography details (such as Author, Title, and URL) and click 'OK' to instantly insert the formatted citation.
Fully compatible with Microsoft Word (.docx) formats and citation fields.Intuitive References tab for quick footnote, endnote, and citation management.Free and lightweight alternative to heavy Office installations.No need to edit XML files to achieve professional document formatting.
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I find the bibliography style folder in Word 365?

The folder location depends on your specific Office installation. If it is not located in C:\Program Files\Microsoft Office\Root\Office16\Bibliography\Style, try checking the user-specific directory at C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Bibliography\Style.

Why isn't my new source type appearing in Word after editing the XML?

Word must be completely closed and restarted to load any modified XML style sheets. Additionally, ensure there are no syntax errors or missing tags in the XML code you pasted, as invalid formatting will prevent the entire style from loading.

Can I share my custom Word citation style with others?

Yes. Once you have successfully customized the .xsl file with your new source types, you can copy and share the file. Other users will simply need to paste this file into their own Word Bibliography Style folder to access the custom options.