WhatsApp Icon Join WhatsApp

Floating Social Share Icons without Plugin with GeneratePress

Floating Social Share Buttons without Plugin

अगर आप अपने WordPress Blog पर Floating Social Share Icons without Plugin लगाना चाहते हैं, तो अब यह आप बहुत ही आसानी से कर सकते हैं।

आपको Floating Social Share Icons without Plugin लगाना है तो सबसे पहले आपके पास GeneratePress Premium Theme होनी चाहिए।

अगर आपके पास GeneratePress Premium Theme नहीं है तो आप आप हमारे Telegram Channel से GeneratePress Premium Theme Plugin Download कर सकते हैं।

Floating Social Share Icons without Plugin

अपनी website पर Floating Social Share Icons without Plugin लगाने के लिए सबसे पहले आपको generate press premium theme install करके उसमें element section को enable करना होगा।

उसके बाद आप element section में जाकर एक नया hook created करेंगे –

  • अब आपको hook के लिए एक title देना है।
  • Hook के लिए हमने code दिया है उसे hook section में paste कर दें।
  • थोड़ा scroll down करने पर hook setting में WP footer कर दें।
  • Hook setting के थोड़ा नीचे execute PHP को भी enableकर दें।
  • अब display rule में जाकर display की जगह आप entire site set कर दे।

Hook Code –

<?php
    $currentUrl = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
  ?>
    <div class="hc-social-icons">
        <a href="https://telegram.me/share/url?url=<?php echo $currentUrl; ?>" id="tlgm" target="_blank">
            <img alt="svgImg" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+CjxwYXRoIGZpbGw9IiMyOWI2ZjYiIGQ9Ik0yNCA0QTIwIDIwIDAgMSAwIDI0IDQ0QTIwIDIwIDAgMSAwIDI0IDRaIj48L3BhdGg+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTMzLjk1LDE1bC0zLjc0NiwxOS4xMjZjMCwwLTAuMTYxLDAuODc0LTEuMjQ1LDAuODc0Yy0wLjU3NiwwLTAuODczLTAuMjc0LTAuODczLTAuMjc0bC04LjExNC02LjczMyBsLTMuOTctMi4wMDFsLTUuMDk1LTEuMzU1YzAsMC0wLjkwNy0wLjI2Mi0wLjkwNy0xLjAxMmMwLTAuNjI1LDAuOTMzLTAuOTIzLDAuOTMzLTAuOTIzbDIxLjMxNi04LjQ2OCBjLTAuMDAxLTAuMDAxLDAuNjUxLTAuMjM1LDEuMTI2LTAuMjM0QzMzLjY2NywxNCwzNCwxNC4xMjUsMzQsMTQuNUMzNCwxNC43NSwzMy45NSwxNSwzMy45NSwxNXoiPjwvcGF0aD48cGF0aCBmaWxsPSIjYjBiZWM1IiBkPSJNMjMsMzAuNTA1bC0zLjQyNiwzLjM3NGMwLDAtMC4xNDksMC4xMTUtMC4zNDgsMC4xMmMtMC4wNjksMC4wMDItMC4xNDMtMC4wMDktMC4yMTktMC4wNDMgbDAuOTY0LTUuOTY1TDIzLDMwLjUwNXoiPjwvcGF0aD48cGF0aCBmaWxsPSIjY2ZkOGRjIiBkPSJNMjkuODk3LDE4LjE5NmMtMC4xNjktMC4yMi0wLjQ4MS0wLjI2LTAuNzAxLTAuMDkzTDE2LDI2YzAsMCwyLjEwNiw1Ljg5MiwyLjQyNyw2LjkxMiBjMC4zMjIsMS4wMjEsMC41OCwxLjA0NSwwLjU4LDEuMDQ1bDAuOTY0LTUuOTY1bDkuODMyLTkuMDk2QzMwLjAyMywxOC43MjksMzAuMDY0LDE4LjQxNiwyOS44OTcsMTguMTk2eiI+PC9wYXRoPgo8L3N2Zz4="/>
        </a>
        <a id="wtsp" href="https://wa.me/?text=<?php echo $currentUrl; ?>" target="_blank">
            <img alt="svgImg" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+CjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik00Ljg2OCw0My4zMDN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MS41MDIsMS44NTljLTAuMjc3LDAuMzE3LTAuNTU0LDAuMzU3LTEuMDI4LDAuMTE5Yy0wLjQ3NC0wLjIzOC0yLjAwMi0wLjczOC0zLjgxNS0yLjM1NGMtMS40MS0xLjI1Ny0yLjM2Mi0yLjgxLTIuNjM5LTMuMjg1Yy0wLjI3Ny0wLjQ3NC0wLjAzLTAuNzMxLDAuMjA4LTAuOTY4YzAuMjEzLTAuMjEzLDAuNDc0LTAuNTU0LDAuNzEyLTAuODMxYzAuMjM3LTAuMjc3LDAuMzE2LTAuNDc1LDAuNDc0LTAuNzkxYzAuMTU4LTAuMzE3LDAuMDc5LTAuNTk0LTAuMDQtMC44MzFDMjAuNjEyLDE5LjMyOSwxOS42OSwxNi45ODMsMTkuMjY4LDE2LjA0NXoiIGNsaXAtcnVsZT0iZXZlbm9kZCI+PC9wYXRoPgo8L3N2Zz4="/>
        </a>
        <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $currentUrl; ?>" id="fbicn" target="_blank">
            <img alt="svgImg" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+CjxwYXRoIGZpbGw9IiMwMzliZTUiIGQ9Ik0yNCA1QTE5IDE5IDAgMSAwIDI0IDQzQTE5IDE5IDAgMSAwIDI0IDVaIj48L3BhdGg+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTI2LjU3MiwyOS4wMzZoNC45MTdsMC43NzItNC45OTVoLTUuNjl2LTIuNzNjMC0yLjA3NSwwLjY3OC0zLjkxNSwyLjYxOS0zLjkxNWgzLjExOXYtNC4zNTljLTAuNTQ4LTAuMDc0LTEuNzA3LTAuMjM2LTMuODk3LTAuMjM2Yy00LjU3MywwLTcuMjU0LDIuNDE1LTcuMjU0LDcuOTE3djMuMzIzaC00LjcwMXY0Ljk5NWg0LjcwMXYxMy43MjlDMjIuMDg5LDQyLjkwNSwyMy4wMzIsNDMsMjQsNDNjMC44NzUsMCwxLjcyOS0wLjA4LDIuNTcyLTAuMTk0VjI5LjAzNnoiPjwvcGF0aD4KPC9zdmc+"/>
        </a>
    </div>

Floating Social Share CSS

अब आपको अपने social share buttons के लिए CSS and करनी होगी जो आप theme customisation के section में जाकर additional CSS की जगह add कर सकते हैं।

CSS Code –

.hc-social-icons{
position: fixed;
top: 30%;
left: 0;
display: flex;
flex-direction: column;}
.hc-social-icons img{
height: 30px;
margin: 4px;}
#wtsp{
background-color: #1ecc5e;}
#tlgm{
background-color: #29b6f6;
border-radius: 0 10px 0 0;
}
#fbicn{
background-color: #039be5;
border-radius: 0 0 10px 0;}
@media (max-width: 300px) {
.hc-social-icons {
display: none; }}

अब आपको अपनी website को Cache clear करके reload करना है आपकी website पर Hindi creator की तरह है floating social share button without plugin दिखने लगेंगे।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top