broadleaf-commerce

How to Change the Admin logo in Broadleaf


Hi please help to change the admin logo in broad-leaf. and where the images and templates are located in admin. i have already done searching the file structure but i wont find the images folder there. please help to solve the issue thanks in advance.


Solution

  • The admin templates are packaged. Example, in my case, they are here:

    C:\Users\myuser\.m2\repository\org\broadleafcommerce\broadleaf-open-admin-platform\5.2.0-SNAPSHOT\broadleaf-open-admin-platform-5.2.0-20170707.134303-195.jar!\open_admin_style
    

    You will have to override the admin templates by following the same folder structure found in the directory I mentioned above, but replicated in your admin project under /src/resources.

    For example, you can place your modified loginLayout.html here:

    admin\src\main\resources\open_admin_style\templates\layout\
    

    Your loginLayout.html could contain /img/admin/your-company-logo.png , and have the logo placed here:

    admin\src\main\resources\open_admin_style\img\admin\your-company-logo.png
    

    Edit: I might be wrong but it might be important to have similar file names in this simple overriding case.