Query about splash image

how to change splash image of our ERP Next…

Many ways to do this!

Most recommended.

Add a update_website_context within your hooks.py and direct it to your path function. For instance

update_website_context = 'my_app.some_module.some_py_file.update_website_context'

And your function…

def update_website_context(context):
     context.update(dict(
          splash_image = '/assets/my_app/images/my_awesome_splash_image.svg'
     ))
     return context

Don’t forget to add the image within your /assets directory.

can you tell the path of assets directory…from where i have to find it…?

my_app/public/images directory. Apologies!

Check here how it’s done! Might I suggest you to browse the source code for more insights.

where i put following function ? In which file i have to put it ?

def update_website_context(context):
context.update(dict(
splash_image = ‘/assets/my_app/images/my_awesome_splash_image.svg’
))
return context

To search the code go online GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

Or from a terminal console:

frappe@erpnext:~/frappe-bench$ find . -name ‘*.py’ | xargs grep update_website_context
./apps/erpnext/erpnext/hooks.py:update_website_context = “erpnext.shopping_cart.utils.update_website_context”
./apps/erpnext/erpnext/shopping_cart/utils.py:def update_website_context(context):
./apps/frappe/frappe/website/doctype/website_settings/website_settings.py: for update_website_context in hooks.update_website_context or []:
./apps/frappe/frappe/website/doctype/website_settings/website_settings.py: frappe.get_attr(update_website_context)(context)