Skip to content
TechsBucket

TechsBucket

All About Technology

subscribe techsbucket (1)
Primary Menu
  • Home
  • Linux
  • Mobile
  • Codes
  • Blog
  • Jobs
  • Tools
    • No Copyright Images
    • Text to Audio Converter
    • Resume Generator
    • Image Converter
  • Games
  • Course
  • iPhone
  • Home
  • Codes
  • Telegram Subscribe Floating Button code for WordPress
  • Codes

Telegram Subscribe Floating Button code for WordPress

TechsBucket March 1, 2023

A Telegram subscribes floating button is a widget that allows website visitors to easily subscribe to a Telegram channel or group without leaving the website. The button “floats” on the screen and remains visible as the user scrolls down the page, making it easy to find and access.

When a user clicks on the Telegram subscribe floating button, they are redirected to the Telegram app or web version and prompted to join the channel or group. This can be a useful tool for website owners or businesses to increase their Telegram followers and keep their audience engaged with their content.

How to display 300*250 Google Adsense Ads

HTML and CSS code for basic Keyword Research Tool

Steps for Telegram Subscribe floating Button in WordPress

  1. In your WordPress dashboard, go to Appearance > Editor.
  2. Select the functions.php file from the list of files on the right-hand side.
  3. Add the following code at the end of the functions.php file:

HTML and CSS code for basic Keyword Research Tool

Email Signup Form Code for Website

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function add_telegram_subscribe_button() {
echo '<a href="https://t.me/your_channel_username" target="_blank" class="telegram-button"><i class="fab fa-telegram-plane"></i> Subscribe</a>';
}
add_action( 'wp_footer', 'add_telegram_subscribe_button' );
function add_telegram_subscribe_button() { echo '<a href="https://t.me/your_channel_username" target="_blank" class="telegram-button"><i class="fab fa-telegram-plane"></i> Subscribe</a>'; } add_action( 'wp_footer', 'add_telegram_subscribe_button' );
function add_telegram_subscribe_button() {
    echo '<a href="https://t.me/your_channel_username" target="_blank" class="telegram-button"><i class="fab fa-telegram-plane"></i> Subscribe</a>';
}
add_action( 'wp_footer', 'add_telegram_subscribe_button' );
  1. Replace “your_channel_username” with the username of your Telegram channel or group.
  2. Save the changes.
  3. In your WordPress dashboard, go to Appearance > Customize.
  4. Add the following code to the Additional CSS section.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
.telegram-button {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #0088cc;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.telegram-button:hover {
background-color: #005580;
color: #fff;
}
.telegram-button i {
margin-right: 10px;
}
.telegram-button { position: fixed; bottom: 20px; right: 20px; background-color: #0088cc; color: #fff; padding: 10px 20px; border-radius: 5px; font-size: 16px; text-decoration: none; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .telegram-button:hover { background-color: #005580; color: #fff; } .telegram-button i { margin-right: 10px; }
.telegram-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0088cc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.telegram-button:hover {
    background-color: #005580;
    color: #fff;
}
.telegram-button i {
    margin-right: 10px;
}
  1. Save the changes and preview your website to see the Telegram subscribe floating button in action.

Note: You can customize the CSS styles as per your requirements to change the button’s appearance, size, position, and color.

Continue Reading

Previous: Amazing Xiaomi 13 Lite, Customers are Ready to loot, Know the Specs
Next: Nokia C22 is Available at Cheap Price, Check Specs

1 thought on “Telegram Subscribe Floating Button code for WordPress”

  1. Asad says:
    October 29, 2023 at 6:15 pm

    so niece and helpful post and site this is

    Reply

Leave a Reply Cancel reply

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

Related

Personal Portfolio Website Builder with Full Code Examples
  • Codes

Personal Portfolio Website Builder with Full Code Examples

TechsBucket January 29, 2025
How to Develop a Budget Tracker Tool
  • Codes

How to Develop a Budget Tracker Tool

TechsBucket January 4, 2025
How to Build a To-Do List Application
  • Codes

How to Build a To-Do List Application

TechsBucket January 4, 2025

Popular

Snapdragon Features and Performance Review Snapdragon Features and Performance Review

Snapdragon Features and Performance Review

May 4, 2025
Google Pixel 9a Review: The Best Mid-Range Phone of 2025 Google Pixel 9a Review: The Best Mid-Range Phone of 2025

Google Pixel 9a Review: The Best Mid-Range Phone of 2025

May 3, 2025
Realme P3x 5G Gets a Massive Price Drop Realme P3x 5G Gets a Massive Price Drop

Realme P3x 5G Gets a Massive Price Drop

May 3, 2025
Linux Server Hardening: 10 Must-Do Tasks Linux Server Hardening: 10 Must-Do Tasks

Linux Server Hardening: 10 Must-Do Tasks

April 30, 2025
Steps to Set Up a Linux Web Server Steps to Set Up a Linux Web Server

Steps to Set Up a Linux Web Server

April 30, 2025
Samsung Galaxy S25 Edge Samsung Galaxy S25 Edge

Samsung Galaxy S25 Edge

April 28, 2025
AdSense Responsive Ads
  • Home
  • About
  • Contact
  • DMCA
  • Privacy Policy
  • YouTube
  • Facebook
TechsBucket © All Rights Reserved | MoreNews by AF themes.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Accept

Ad-Block Detected :((

Sorry, We detected that you have activated Ad-Blocker.
Please consider supporting us by disabling your Ad-Blocker. It helps us in maintaining this website.
To view the content, disable the ad-blocker and refresh the page.

Thank You !!!