Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

when to use custom code v. edit text/html

Avatar

Avatar
Validate 1
Level 3
laurenh60572845
Level 3

Likes

31 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
laurenh60572845
Level 3

Likes

31 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
laurenh60572845
Level 3

19-07-2018

Per target basics webinar Q+A: apparently custom code renders at the top of page or even in header. Doing it in-line will apply the text, html, or code changes where you make them. How do you actually determine when to use in-line vs. custom code? What is potential impact of change rendering at top of page vs. where you make them?

View Entire Topic

Avatar

Avatar
Boost 50
Employee
ryanr701
Employee

Likes

188 likes

Total Posts

193 posts

Correct Reply

77 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Employee
ryanr701
Employee

Likes

188 likes

Total Posts

193 posts

Correct Reply

77 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
ryanr701
Employee

23-07-2018

Hi Lauren,

Good question. I generally try to stick with the "in-line" type modification when possible. However, I find the custom code can sometimes be necessary or easier in some case - though there isn't a hard and fast rule that I'm aware of. Here are some example use cases I use custom code for:

  1. If I want to make a custom CSS change to an element (beyond the typical modification) like the background image reference.
  2. When I want to make changes to an element that exists many times on the page or even a dynamic number of times. Doing the change one time with custom code can be much easier then visual modification repeated over an over for the same element.
  3. Changing the functionality of an element on the page.