How do they get the URL of current page?
The links are built using liquid code. They look for current page URL and insert into the share link. So doesn’t matter where you place them, they work!
Use a style that suits your needs. Here is what I have used.
A complete html file
Read the article