@shraddhamuduli I would request you to use the code button here on Splunk Answers i.e. button with 101010 or Ctrl+K Shortcut key to ensure that special characters in your code do not escape.
Just FYI, the static files like image file, javascript, css and html etc need to be placed under your app's appserver/static folder... i.e.
$SPLUNK_HOME$/etc/app/analytics/appserver/static
If the appserver/static path does not exist you would need to create the same. Since this is a static file change you might also be required to restart/refresh or bump your Splunk instance and also clear browser history for the changes to reflect.
You can refer to similar path under your default search app to get the complete path for appserver/static folder. Change search app to your own i.e. analytics to get the required path for static file.
Refer to the Splunk Documentation for details: https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/UseCSS
... View more