How to Add an Online Image Source Type to Word 365 Citations
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.

- 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 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.
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.
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.
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.
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.
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.

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. Open your document: Launch WPS Office Writer and open your academic or professional document.
- 2. Access the References tab: Navigate to the 'References' tab located on the top ribbon menu.
- 3. Insert a citation: Click on 'Insert Citation' to open the source manager, allowing you to select from various built-in source types.
- 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.

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.




