ExamGecko
Question list
Search
Search

Question 115 - Certified B2B Commerce Developer discussion

Report
Export

A developer needs to implement specific styling for a standard component on a single page of the B2B Commerce store using an Aura template. The component should use the default style on all other pages

How should the developer implement the required changes over multiple instances?

A.
Use a Custom CSS file in a static resource and add the import using the Edit Head Markup Editor in the Experience Builder.
Answers
A.
Use a Custom CSS file in a static resource and add the import using the Edit Head Markup Editor in the Experience Builder.
B.
Create a Custom Content Layout Lightning web component that imports the custom CSS file. Set up the page to use this Content Layout.
Answers
B.
Create a Custom Content Layout Lightning web component that imports the custom CSS file. Set up the page to use this Content Layout.
C.
Create a Custom Theme Layout Aura component that imports the custom CSS file. Set up the page to use this Theme Layout.
Answers
C.
Create a Custom Theme Layout Aura component that imports the custom CSS file. Set up the page to use this Theme Layout.
D.
Use the Override CSR Editor in the Experience Builder and add the desired CSS to change the styles.
Answers
D.
Use the Override CSR Editor in the Experience Builder and add the desired CSS to change the styles.
Suggested answer: C

Explanation:

To implement specific styling for a standard component on a single page of the B2B Commerce store using an Aura template, a developer should create a custom theme layout Aura component that imports the custom CSS file and set up the page to use this theme layout. A theme layout is a type of Aura component that defines the header and footer of a page in the storefront. A theme layout can also import custom CSS files from static resources and apply them to the page. A developer can create a custom theme layout Aura component that imports the custom CSS file that contains the specific styling for the standard component and assign it to the page that needs the custom styling. This way, the custom styling will only affect the standard component on that page and not on other pages that use a different theme layout. Using a custom CSS file in a static resource and adding the import using the Edit Head Markup Editor in the Experience Builder is not a valid way to implement specific styling for a standard component on a single page, as it will affect all pages that use the same template. Creating a custom content layout Lightning web component that imports the custom CSS file and setting up the page to use this content layout is not a valid way either, as it will not affect the standard component that is outside of the content layout. Using the Override CSR Editor in the Experience Builder and adding the desired CSS to change the styles is not a valid way either, as it will affect all pages that use the same template. Salesforce

Reference:B2B Commerce Developer Guide: Theme Layout Component,B2B Commerce Developer Guide: Content Layout Component,B2B Commerce Developer Guide: Override CSR Editor

asked 23/09/2024
Veronica Puddu
54 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first