Free Bhagavad Gita Verse of the Day Widget

Embeddable widget for websites, blogs, and spiritual platforms

Live Widget Preview

Bhagavad Gita - Verse of the Day
यदा यदा हि धर्मस्य ग्लानिर्भवति भारत।
अभ्युत्थानमधर्मस्य तदात्मानं सृजाम्यहम्॥
yadā yadā hi dharmasya glānir bhavati bhārata
abhyutthānam adharmasya tadātmānaṁ sṛjāmy aham
Whenever there is a decline in dharma (righteousness) and an increase in adharma (unrighteousness), O descendant of Bharata, at that time I manifest myself on earth.
Bhagavad Gita 4.7

Customize Your Widget

Get Your Embed Code

Copy and paste this code into your website where you want the widget to appear:

<!-- Bhagavad Gita Verse of the Day Widget --> <div id="gita-verse-widget"></div> <script> (function() { var script = document.createElement('script'); script.src = 'https://srimadgita.com/widget/verse-of-day.js'; script.async = true; script.onload = function() { GitaWidget.init({ containerId: 'gita-verse-widget', theme: 'gradient', language: 'english', width: '400px', borderRadius: '15px' }); }; document.head.appendChild(script); })(); </script>

Developer Documentation

Overview

The Bhagavad Gita Verse of the Day widget is a free, embeddable JavaScript widget that displays daily verses from the Bhagavad Gita. It automatically updates every day with a new verse, complete with Sanskrit text, transliteration, and English translation.

Features

🎨 Customizable Themes

Choose from 5 beautiful themes including gradient, classic, dark mode, saffron, and lotus pink designs.

🌍 Multiple Languages

Support for English, Hindi, and Sanskrit-only display options to match your audience.

📱 Responsive Design

Automatically adapts to different screen sizes and container widths for optimal display.

⚡ Fast Loading

Lightweight JavaScript with async loading and CDN delivery for minimal impact on page speed.

🔄 Auto-Updates

Automatically displays a new verse each day without any manual intervention required.

🎯 SEO Friendly

Includes proper structured data and semantic markup for search engine optimization.

Basic Implementation

The simplest way to add the widget to your website:

<div id="gita-verse-widget"></div> <script src="https://srimadgita.com/widget/verse-of-day.js"></script> <script> GitaWidget.init({ containerId: 'gita-verse-widget' }); </script>

Advanced Configuration

Customize the widget with these configuration options:

GitaWidget.init({ containerId: 'gita-verse-widget', theme: 'gradient', // gradient, classic, dark, saffron, lotus language: 'english', // english, hindi, sanskrit width: '400px', // Any valid CSS width value height: 'auto', // Any valid CSS height value borderRadius: '15px', // Border radius in pixels showTransliteration: true, // Show/hide transliteration showReference: true, // Show/hide verse reference customCSS: '', // Custom CSS overrides onLoad: function() { // Callback when widget loads console.log('Gita widget loaded'); }, onError: function(error) { // Error handling console.error('Widget error:', error); } });

Theme Options

Language Support

Responsive Behavior

The widget automatically adapts to its container width:

Integration Examples

WordPress Integration

Add to your theme's functions.php or use in a custom HTML widget:

function add_gita_widget_to_footer() { echo '<div id="gita-verse-widget"></div> <script src="https://srimadgita.com/widget/verse-of-day.js"></script> <script> GitaWidget.init({ containerId: "gita-verse-widget", theme: "classic" }); </script>'; } add_action('wp_footer', 'add_gita_widget_to_footer');

React Integration

import { useEffect } from 'react'; function GitaWidget() { useEffect(() => { const script = document.createElement('script'); script.src = 'https://srimadgita.com/widget/verse-of-day.js'; script.async = true; script.onload = () => { window.GitaWidget.init({ containerId: 'gita-verse-widget', theme: 'gradient' }); }; document.head.appendChild(script); return () => { document.head.removeChild(script); }; }, []); return <div id="gita-verse-widget"></div>; }

Vue.js Integration

<template> <div id="gita-verse-widget"></div> </template> <script> export default { mounted() { const script = document.createElement('script'); script.src = 'https://srimadgita.com/widget/verse-of-day.js'; script.async = true; script.onload = () => { window.GitaWidget.init({ containerId: 'gita-verse-widget', theme: 'dark' }); }; document.head.appendChild(script); } } </script>

API Reference

The widget exposes these methods for programmatic control:

// Refresh widget with new verse GitaWidget.refresh(); // Update configuration GitaWidget.updateConfig({ theme: 'dark', language: 'hindi' }); // Get current verse data GitaWidget.getCurrentVerse().then(verse => { console.log(verse.sanskrit, verse.translation); }); // Destroy widget GitaWidget.destroy();

Performance Considerations

SEO Benefits

Including the Bhagavad Gita widget on your website provides:

Content Attribution

The widget includes a small "Powered by Srimad Gita" link that:

Terms of Use

Browser Support

Troubleshooting

Widget Not Loading

Check these common issues:

Styling Issues

If the widget appears broken:

Support and Updates

For technical support, questions, or feature requests:

Related Resources

Enhance your spiritual website with these additional resources:

The Bhagavad Gita Verse of the Day widget is designed to bring the timeless wisdom of Krishna's teachings to modern websites. By embedding this widget, you're not just adding content to your site—you're creating a daily touchpoint with one of humanity's greatest philosophical texts.

Each verse is carefully selected to provide a balanced representation of the Gita's teachings throughout the year. The rotation includes verses from all 18 chapters, covering themes of duty (dharma), devotion (bhakti), knowledge (jnana), and action (karma yoga).

Whether you're running a spiritual blog, yoga studio website, meditation platform, or any site focused on personal development, this widget adds authentic value that your visitors will appreciate and return to see daily.

`; document.getElementById('embedCode').textContent = embedCode; } function copyEmbedCode() { const embedCode = document.getElementById('embedCode').textContent; navigator.clipboard.writeText(embedCode).then(() => { const button = document.querySelector('.copy-button'); button.textContent = 'Copied!'; setTimeout(() => { button.textContent = 'Copy Embed Code'; }, 2000); }); } // Initialize embed code updateEmbedCode();