step 1: Go to the related list object where we need to create custom button.
For example if we want to create a custom button in "contact" related list of Account detail page,
go to contact object and create custom list button as shown in the image below.
step 2: Go to edit layout of parent object(here Account) and edit the contact related section as shown in the images below
For example if we want to create a custom button in "contact" related list of Account detail page,
go to contact object and create custom list button as shown in the image below.
step 2: Go to edit layout of parent object(here Account) and edit the contact related section as shown in the images below