Embedding the Widget
The donation widget can be placed on any page, post, or template using three methods.
Gutenberg Block
Section titled “Gutenberg Block”In the WordPress block editor, search for Pybara Donate and insert the block. No configuration needed — the block uses your saved plugin settings.
Shortcode
Section titled “Shortcode”Paste the shortcode into any page, post, or text widget:
[pybara_donate]This works in the Classic Editor, block editor (Shortcode block), Elementor, and most page builders.
PHP Template
Section titled “PHP Template”To embed the widget directly in a theme template file:
<?php echo do_shortcode('[pybara_donate]'); ?>Place this in your theme’s page.php, single.php, sidebar.php, or any custom template file.
Placement Tips
Section titled “Placement Tips”- Dedicated donation page — Create a page (e.g.
/donate) and add the widget as the primary content - Sidebar widget — Add a Text widget with the shortcode to your sidebar
- Footer — Embed in
footer.phpfor site-wide visibility - Within content — Drop the shortcode mid-post to add a donation prompt inline
Next Steps
Section titled “Next Steps”- Configuration — Adjust preset amounts, colors, and behavior
- Supported Tokens