Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E720 Topic 8 Question 12 Discussion

Actual exam question for Adobe's AD0-E720 exam
Question #: 12
Topic #: 8
[All AD0-E720 Questions]

An Adobe Commerce developer is customizing buttons for a custom theme that inherits Magento/blank theme and needs to override the default values. Where would the default values for the buttons be located?

Show Suggested Answer Hide Answer
Suggested Answer: A, B

To implement a custom font specifically for emails, the developer needs to do the following steps:

Add the custom font file to the web/fonts directory of the custom theme.

Use the @import font function with the url of the custom font from the theme in the /Vendor/Theme/web/css/source/_extend.less file. This will import the custom font and make it available for use in other LESS files. For example:

@import font('custom-font', '@{baseDir}fonts/custom-font.ttf', 'truetype');

Add in the styles to target the elements that require being changed in the /Vendor/Theme/web/css/source/_email.less file. This file is used to define the styles for email templates. The developer can use the .lib-font-face() mixin to apply the custom font to specific selectors. For example:

.lib-font-face( @family-name: @custom-font, @font-path: '@{baseDir}fonts/custom-font', @font-weight: normal, @font-style: normal );

h1 { .lib-font-face( @family-name: @custom-font, @font-path: '@{baseDir}fonts/custom-font', @font-weight: normal, @font-style: normal ); }

The /vendor/Theme/web/css/source/_typography.less file is not suitable for implementing a custom font for emails, as it is used for defining global typography styles for web pages. The <head></head> tag is not used for adding fonts in email templates, as it is not supported by most email clients. Reference: [Custom fonts], [Email templates overview]


Contribute your Thoughts:

Goldie
29 days ago
Hmm, let's see... Buttons, Magento, LESS... Sounds like a recipe for some serious CSS magic! I bet the answer is hidden in a secret folder called 'lib/web/css/source/lib/_buttons.lol'.
upvoted 0 times
...
Louvenia
1 months ago
Wait, so we're supposed to override the default button styles? Sounds like a lot of work. Maybe I'll just use the default and call it a day.
upvoted 0 times
...
Jerrod
1 months ago
Hold up, is it just me or does this question feel a little too easy? I'm going with C, just to keep the exam on its toes.
upvoted 0 times
...
Suzan
1 months ago
Come on, it's gotta be option B. Magento uses LESS, not plain CSS, right?
upvoted 0 times
Wilson
3 days ago
I think you're right, Magento does use LESS for styling.
upvoted 0 times
...
Florinda
4 days ago
C) lib/web/css/source/lib/_button.less
upvoted 0 times
...
Wynell
6 days ago
C) lib/web/css/source/lib/_button.less
upvoted 0 times
...
Tarra
7 days ago
B) lib/web/less/source/lib/_buttons.less
upvoted 0 times
...
Hyman
15 days ago
B) lib/web/less/source/lib/_buttons.less
upvoted 0 times
...
Carlee
18 days ago
A) lib/web/css/source/lib/_buttons.less
upvoted 0 times
...
Gregoria
20 days ago
A) lib/web/css/source/lib/_buttons.less
upvoted 0 times
...
...
Marylin
2 months ago
The default button styles are definitely in the _buttons.less file, so I'm going with option A.
upvoted 0 times
Ezekiel
7 days ago
Yes, option A is the correct location for the default button values.
upvoted 0 times
...
Amber
9 days ago
I agree, let's check option A for the default values.
upvoted 0 times
...
Rene
11 days ago
I think you're right, the default button styles are in _buttons.less.
upvoted 0 times
...
...
Corrina
2 months ago
I'm not sure, but I think it might be C) lib/web/css/source/lib/_button.less. Can someone confirm?
upvoted 0 times
...
Daren
3 months ago
I disagree, I believe it is actually in B) lib/web/less/source/lib/_buttons.less.
upvoted 0 times
...
Eleonora
3 months ago
I think the default values for the buttons would be located in A) lib/web/css/source/lib/_buttons.less.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77