-
Book Overview & Buying
-
Table Of Contents
Magento 2 Development Cookbook
By :
These days, an increasing number of people are sharing their minds through different social media, such as Facebook, Twitter, and many more.
Every social media platform has the option to share pages on their platform. The most famous examples of this are the share buttons, such as the Like button of Facebook, the Tweet button, the Google Plus button, and many more.
In this recipe, we will add share buttons for the following platforms. You can take a look at the developer documentation of each platform as a preparatory step:
To show a button on every product page, we have to do some code changes. Ensure that you have access to the code with your IDE.
The following steps show you how to add social media buttons to the description of your product:
Change the font size
Change margin width
Change background colour