How to add WhatsApp share button in blogger with the WhatsApp logo
To fetch the URL of the current page dynamically and automatically for the WhatsApp share button, you can use JavaScript. Here's an updated code snippet:
HTML:
```html
<a href="javascript:void(0);" onclick="shareOnWhatsApp()" class="whatsapp-button">
<i class="fab fa-whatsapp"></i> Share on WhatsApp
</a>
```
CSS:
```css
.whatsapp-button {
display: inline-block;
background-color: green;
color: white;
text-decoration: none;
padding: 10px 20px;
border-radius: 5px;
font-weight: bold;
}
.whatsapp-button i {
margin-right: 5px;
}
```
JavaScript:
```javascript
function shareOnWhatsApp() {
var url = encodeURIComponent(window.location.href);
var shareUrl = "whatsapp://send?text=Check%20out%20this%20awesome%20website:%20" + url;
window.location.href = shareUrl;
}
```
Follow these steps to implement this solution on your Blogger website:
1. Access your Blogger dashboard and go to the "Theme" section.
2. Click on "Edit HTML" to open the HTML editor.
3. Locate the `<body>` tag in the HTML code.
4. Choose a suitable location within the `<body>` tag to insert the WhatsApp share button.
5. Paste the HTML code provided above at the desired location.
6. Add the CSS code to your Blogger template. To do this, locate the `<head>` tag in the HTML code, and between the `<head>` and `</head>` tags, add a `<style>` tag containing the CSS code provided above.
7. Add the JavaScript code to your Blogger template. To do this, locate the `<head>` tag in the HTML code, and between the `<head>` and `</head>` tags, add a `<script>` tag containing the JavaScript code provided above.
8. Save the changes and preview your blog to see the WhatsApp share button.
Now, when the user clicks on the WhatsApp share button, it will automatically fetch and include the URL of the current page in the WhatsApp share message.
Please ensure that you have included the Font Awesome library and the necessary JavaScript code for it to work correctly.

Amazing suggestions to start building your own business. whatsapp business
ReplyDeleteCertainly! Here are 40 WhatsApp features, tips, and tricks you should know, including information about gbwhatsapp apk download:
ReplyDeleteText Formatting:
Bold: Add asterisks before and after the text, like **bold**.
Italic: Use underscores before and after the text, like _italic_.
Strikethrough: Place tildes before and after the text, like ~~strikethrough~~.
Voice Messaging:
Tap and hold the microphone icon to record a voice message.
Reply to Specific Messages:
Tap and hold a message, then tap the reply icon to respond to a specific message.
Hide Read Receipts:
Disable read receipts in Settings > Account > Privacy.
Custom Notifications:
Set custom notifications for individual contacts or groups by opening the chat, tapping the contact/group name, and selecting Custom Notifications.
GB WhatsApp:
GB WhatsApp is a modified version of WhatsApp with additional features not found in the official app. Note that using third-party apps like GB WhatsApp may violate WhatsApp's terms of service.
Message Search:
Find specific messages by using the search bar in the chat.
Starred Messages:
Star important messages by holding the message and tapping the star icon. Access them later in Settings > Starred Messages.
Pin Chats:
Pin important chats to the top by swiping right on the chat and selecting the pin icon.
Mute Chats:
Mute noisy groups or chats by tapping on the chat, selecting the three dots, and choosing Mute.
Status Privacy:
Control who sees your status updates in Settings > Account > Privacy > Status.
Two-Step Verification:
Enable two-step verification in Settings > Account > Two-step verification for added security.
Broadcast Lists:
Create broadcast lists to send messages to multiple contacts without creating a group.
Mark as Unread:
Mark messages as unread by tapping and holding a chat, then selecting the unread icon.
Live Location Sharing:
Share your live location in a chat by tapping the attachment icon, selecting Location, and choosing Share Live Location.
Group Admin Controls:
Manage group settings and control who can change the group info in Group Settings.
GB WhatsApp Features (if applicable):
Features in GB WhatsApp may include themes, extended character limits, and additional customization options.
View Deleted Messages:
View deleted messages by using third-party apps or features within GB WhatsApp.
Dark Mode:
Enable Dark Mode in Settings > Chats > Theme.
Quick Reply:
Reply to messages directly from the notification bar without opening the app.
Change Phone Number:
Change your phone number in Settings > Account > Change Number.
Document Sharing:
Share documents by tapping the attachment icon and selecting Document.
Multiple Accounts (GB WhatsApp):
GB WhatsApp may allow using multiple accounts on the same device.
Video Calls:
Make video calls by tapping the video camera icon in a chat.
Security Code:
Verify the security code by comparing it with your contact's to ensure secure communication.
Delete for Everyone:
Delete sent messages for everyone within a specific time frame by selecting the message and choosing Delete for Everyone.
Link Previews:
Disable link previews in Settings > Account > Privacy for added privacy.
Archive Chats:
Archive chats to hide them from the main chat list.
Pin Contacts to Home Screen:
Pin frequently contacted people to your phone's home screen for quick access.
Privacy Settings:
Adjust privacy settings for profile photo, last seen, and status in Settings > Account > Privacy.
Remember, while GB WhatsApp offers additional features, it is not an official WhatsApp product, and its usage may pose security risks. Always be cautious when using third-party applications.
In any other application, it is a big issue to search for your desired video. Snaptube premium apk download install sorts out this problem and brings the opportunity for its user to make a collection of their desired and selective videos in a separate album. This will help you to search the videos easily. You can create many albums of different collections of videos including music, fashion, movies, and many more.
ReplyDeleteSearching for a WhatsApp APK with more attributes? OB WhatsApp is the very best choice! Established by Omer Badeeq.OB whatsapp download has amazing features such as customized styles, anti-ban messages, and a media downloader built in.
ReplyDeleteThis application is a bomb for us. It has many features including video conversion into MP3, Live Coverage through TV, TV Serials, Movies of Hollywood and Bollywood, Multiple website access, multiple languages, and many more. After the successful journey of this application on Android devices, a large number of communities who do not have mobile phones demand the version of vidmate for pc download apk.
ReplyDeleteDownload apk
ReplyDelete