How To Add A Button To The Site

Table of contents:

How To Add A Button To The Site
How To Add A Button To The Site

Video: How To Add A Button To The Site

Video: How To Add A Button To The Site
Video: HTML how to add buttons 🛎️ #9 2024, December
Anonim

The Internet is becoming more and more interactive, and users are increasingly beginning to interact with each other through a variety of sites, using their accounts in social networks - such as VKontakte, Facebook, Odnoklassniki, and others. Almost every site now has several buttons at the end of the article, by clicking on which you can quickly share the material you like with your friends in your account. You can also install social media buttons on your own website.

How to add a button to the site
How to add a button to the site

Instructions

Step 1

You can go the easy way and install ready-made buttons, javascript codes, which are available in the corresponding sections on social service sites. However, javascript significantly slows down the page loading speed, especially if there are many such elements on the page, and this format of the button does not allow resizing and making all buttons the same and neat.

Step 2

If you own Photoshop, you can make buttons in the form of graphic files by downloading icons of popular social networks from the Internet and modifying them to the same width and height.

Step 3

All you need to do is to ensure that when you click on the graphic button, the information is posted on your account on the corresponding social network. Use regular system notepad to open php files.

Step 4

Add all button codes to the single.php or index.php file, and form the following code to maintain the general style of all buttons, the codes of which you will generate and insert into the tag:

codes

Step 5

The styling of all buttons is set through the style.css file.

Step 6

Install buttons for several of the most popular social services with the function "share with friends" and "post material on your page", and optionally add links to your own profiles on the same social networks so that your site visitors can easily find contact with you.

Recommended: