DSpace 7 UI Customization: Enable New Custom Theme

By

Prerequisites

Step 1: Copy custom theme and rename to a different name

Step 2: Register the new theme as shown below in angular.json

Step 3: Update eager-theme.module.ts to use your new theme as shown below

Step 4: Activate the new theme in config/config.[dev/prod].yml as shown below

Step 5: Re/start the application by running yarn start:dev for the changes to take effect.

NOTE: Changes in i18n can be updated with yarn merge-i18n -s src/themes/[theme-name]/assets/i18n

For dspace 8/9, i18n changes can be updated with

npm run merge-i18n -- -s src/themes/[theme-name]/assets/i18n

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

×

Hello!

Select one of our contacts below to chat on WhatsApp

× How can I help you?