web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How can I change the color of the "register now" button on an event website?

(0) ShareShare
ReportReport
Posted on by

Where/How can I customize the colors of my marketing event websites?

button.jpg

I have the same question (0)
  • Suggested answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Sebastian,

    We need to download event website files to add customization, then deploy the customization to Event Portal using an automation script inside the folder.

    You can refer to following community blog posts to learn about how to run event website on local machine and do deployment.

    https://community.dynamics.com/crm/b/misscrm360exploration/posts/tutorial-how-to-build-deploy-and-test-locally-dynamics-365-portal-or-dynamics-marketing-event-portal-and-connect-it-to-your-dynamics-365-instance-live-1670080455(The author also posted links of documentation tutorial.)

    https://community.dynamics.com/crm/b/misscrm360exploration/posts/tutorial-customize-and-deploy-dynamics-365-marketing-event-management-or-other-portal

    Here is my method to customize color of the button:

    1. Create a property "colors" to environment.ts file(src\environments), use child property(e.g: color_option) to represent the specific color:

    (Comment some color codes as other options if necessary.)

    pastedimage1611727868611v1.png

    colors : {
        color_option: "#68BC49"
        // color_option1: "#006ADB",
        // color_option2: "#6BCDFD",
        // color_option3: "#009DAC",
        // color_option4: "#FF9C01",
        // color_option5: "#68BC49"
    },

    2. Open event.component.html(src\app\components\event), search for the button element, bind [ngStyle="getColor()" directive to both of the buttons.

    (We can see there are two register now buttons, if sessions are not enabled for event, then the top button will be used. If sessions are enabled, the bottom one will be used.)

    (getColor is function to read color property of environment.ts.)

    e1.JPG

    3. Open event.component.ts located in the same folder as the html, declare a new function getColor with following code.

    public getColor() {
        return {backgroundColor: environment.colors.color_option, borderColor: environment.colors.color_option}
    }

    pastedimage1611728567699v2.png

    After above steps we only need to change value of the child property to change color of the button.

    Test 1

    pastedimage1611728709794v3.png

    pastedimage1611728739167v4.png

    Test 2

    pastedimage1611728792993v5.png

    pastedimage1611728826727v6.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans