If you are working with the default navigation menus in SharePoint, you may come across the need to modify the sub menu arrow that appears to the right of the navigation text, see a screen shot: View image.
WebResource.axd is a .NET 2.0 function that allows you to embed resources such as images into your .NET project. Great. Not much help here then.
In order to alter this image, you just need to utilize an existing property in AspMenu (the navigation code that runs the SharePoint menu). This will require an edit to your master page, so if you are just using a theme, this approach will not work.
- Open your master page. Preferrably a custom master page. 🙂
- Switch to Code View.
- Search for “TopNavigationMenu”. This should take you to the global navigation (top nav) instance of AspMenu.
- Using Intellisense in the code view, or using the Properties pane, add the following property to the AspMenu tag:DynamicPopOutImageUrl=”insert image URL/path here”So your code should look like:
Here is a sample screenshot showing the address book icon in place of the arrow: View Image.
Thanks to Amit for posting this question to me!