How to Create website share button easy ?

SEO Help and Tips

How to Create website share button easy ?

Here is website share button code below. Visitor can share your website on her social media easily.
Note: You have need to change "YOUR WEBSITE ADDRESS HERE" with your website address.

Example Code:

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />
    <link rel="stylesheet" href="styles.css" />
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            height: 200vh;
            font-family: Arial, sans-serif;
        }
        .shareit {
            position: fixed;
            top: 150px;
            display: flex; /* Make it a flex container */
        }
        .shareit a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            font-size: 24px;
            color: #fff;
            opacity: 0.75;
            transition: opacity 0.15s linear;
            text-decoration: none;
            margin-right: 5px; /* Add some spacing between icons */
        }
        .shareit a:hover {
            opacity: 1;
        }
        .facebook {
            background: #3b5998;
        }
        .twitter {
            background: #55acee;
        }
        .linkedin {
            background: #0077b5;
        }
        .reddit {
            background: #FF4500;
        }
        .tumblr {
            background: #000000;
        }
        .pinterest {
            background: #cb2027;
        }
        .youtube {
            background: #ff0000;
        }
        .whatsapp {
            background: #25D366;
        }
        .messenger {
            background: #0084FF;
        }
    </style>
</head>
<body>
<div class="shareit">
    <!-- facebook -->
    <a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=YOUR WEBSITE ADDRESS HERE" target="_blank" title="Facebook"><i class="fa fa-facebook"></i></a>
    <!-- twitter -->
    <a class="twitter" href="https://twitter.com/intent/tweet?text=SEO%20Help%20and%20Tips&url=YOUR WEBSITE ADDRESS HERE" target="_blank" title="Twitter"><i class="fa fa-twitter"></i></a>
    <!-- linkedin -->
    <a class="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=YOUR WEBSITE ADDRESS HERE" target="_blank" title="LinkedIn"><i class="fa fa-linkedin"></i></a>
    <!-- reddit -->
    <a class="reddit" href="https://www.reddit.com/submit?url=YOUR WEBSITE ADDRESS HERE&title=SEO%20Help%20and%20Tips" target="_blank" title="Reddit"><i class="fa fa-reddit"></i></a>
    <!-- tumblr -->
    <a class="tumblr" href="https://www.tumblr.com/share/link?url=YOUR WEBSITE ADDRESS HERE&name=SEO%20Help%20and%20Tips&description=Check%20out%20this%20blog%20for%20SEO%20help%20and%20tips!" target="_blank" title="Tumblr"><i class="fa fa-tumblr"></i></a>
    <!-- pinterest -->
    <a class="pinterest" href="https://pinterest.com/pin/create/button/?url=YOUR WEBSITE ADDRESS HERE&media=IMAGE_URL&description=SEO%20Help%20and%20Tips" target="_blank" title="Pinterest"><i class="fa fa-pinterest-p"></i></a>
    <!-- whatsapp -->
    <a class="whatsapp" href="https://api.whatsapp.com/send?text=SEO%20Help%20and%20Tips%20-%20YOUR WEBSITE ADDRESS HERE" target="_blank" title="WhatsApp"><i class="fa fa-whatsapp"></i></a>
</div>
</body>


----------------------------------------------------------------------------------------------

Display the social media icons vertically (top to bottom): You can customize icon size by changing the  width and height.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            height: 200vh;
            font-family: Arial, sans-serif;
        }
        .shareit {
            position: fixed;
            top: 150px;
            right: 20px; /* Adjust the right property to position the share buttons on the right side */
            display: flex; /* Make it a flex container */
            flex-direction: column; /* Align icons vertically */
        }
        .shareit a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            font-size: 24px;
            color: #fff;
            opacity: 0.75;
            transition: opacity 0.15s linear;
            text-decoration: none;
            margin-bottom: 5px; /* Add some spacing between icons */
        }
        .shareit a:hover {
            opacity: 1;
        }
        .facebook {
            background: #3b5998;
        }
        .twitter {
            background: #55acee;
        }
        .linkedin {
            background: #0077b5;
        }
        .reddit {
            background: #FF4500;
        }
        .tumblr {
            background: #000000;
        }
        .pinterest {
            background: #cb2027;
        }
        .youtube {
            background: #ff0000;
        }
        .whatsapp {
            background: #25D366;
        }
        .messenger {
            background: #0084FF;
        }
    </style>
</head>
<body>
<div class="shareit">
    <a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=https://source29.blogspot.com/" target="_blank" title="Facebook"><i class="fa fa-facebook"></i></a>
    <a class="twitter" href="https://twitter.com/intent/tweet?text=SEO%20Help%20and%20Tips&url=https://source29.blogspot.com/" target="_blank" title="Twitter"><i class="fa fa-twitter"></i></a>
    <a class="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=https://source29.blogspot.com/" target="_blank" title="LinkedIn"><i class="fa fa-linkedin"></i></a>
    <a class="reddit" href="https://www.reddit.com/submit?url=https://source29.blogspot.com/&title=SEO%20Help%20and%20Tips" target="_blank" title="Reddit"><i class="fa fa-reddit"></i></a>
    <a class="tumblr" href="https://www.tumblr.com/share/link?url=https://source29.blogspot.com/&name=SEO%20Help%20and%20Tips&description=Check%20out%20this%20blog%20for%20SEO%20help%20and%20tips!" target="_blank" title="Tumblr"><i class="fa fa-tumblr"></i></a>
    <a class="pinterest" href="https://pinterest.com/pin/create/button/?url=https://source29.blogspot.com/&media=IMAGE_URL&description=SEO%20Help%20and%20Tips" target="_blank" title="Pinterest"><i class="fa fa-pinterest-p"></i></a>
    <a class="whatsapp" href="https://api.whatsapp.com/send?text=SEO%20Help%20and%20Tips%20-%20https://source29.blogspot.com/" target="_blank" title="WhatsApp"><i class="fa fa-whatsapp"></i></a>
</div>
</body>
</html>

Comments

Popular posts from this blog

How to fix SSL Certificate Issues?

How to Fix Website Mixed Content Issues?

How to Fix Mobile Responsiveness Issues?

Popular posts from this blog

How to fix SSL Certificate Issues?

How to Fix Website Mixed Content Issues?

How to Fix Mobile Responsiveness Issues?