Key Features
-
Instant Name Generation: Generates up to 40 unique and catchy snack business name ideas per search.
-
AJAX-Powered Performance: Delivers fast results without requiring full page reloads.
-
One-Click Copy: Allows users to copy generated names directly to their clipboard with a single click.
-
Soft Purple UI: Features a modern, clean, and fully responsive soft purple design.
-
Shortcode Integration: Simple implementation anywhere on your site using
[snack_name_generator]. -
Security & Validation: Built with WordPress nonces, input sanitization, and character limits (up to 60 characters).
Ideal For
-
Food & Beverage Blogs: Ideal for adding interactive value to culinary content.
-
Branding & Marketing Agencies: Great for quick brainstorming sessions with clients.
-
Entrepreneurship Portals: Helpful for startup hubs, business incubators, and business resource websites.
-
E-commerce Stores: Useful for platforms selling snack recipes, equipment, or business consultations.
Key Benefits
-
Boosts User Engagement: Keeps visitors on your site longer with an interactive tool.
-
Saves Time: Eliminates manual brainstorming by producing multiple name combinations in seconds.
-
Seamless Design: Blends naturally into modern WordPress themes with inline CSS styling.
-
Zero External Dependencies: Built natively using vanilla JavaScript and standard WordPress AJAX actions.
Installation Guide
You can set up this snippet in a few simple steps:
Method 1: Using the Code Snippets Plugin (Recommended)
-
Install and activate the free Code Snippets plugin from the WordPress repository.
-
Go to Snippets → Add New in your WordPress dashboard.
-
Paste the provided PHP code into the code editor.
-
Set the code type to PHP Snippet.
-
Click Save Changes and Activate.
Method 2: Via Theme functions.php
-
Go to Appearance → Theme File Editor (or access your server via FTP/cPanel).
-
Open your active child theme’s
functions.phpfile. -
Paste the PHP code at the end of the file.
-
Save the file.
How to Display the Tool on Your Site:
Add the following shortcode to any Page, Post, or Custom Post Type:
[snack_name_generator]Compatibility
-
WordPress Version: WP 5.0 or higher
-
PHP Version: PHP 7.4, 8.0, 8.1, 8.2+
-
Editors: Gutenberg Block Editor, Classic Editor, Elementor, Divi, Beaver Builder
-
Browsers: Chrome, Safari, Firefox, Edge, Opera (Desktop & Mobile)
What You Will Get
-
Full PHP Code: Complete functional code ready for deployment.
-
Embedded CSS & JS: Built-in styling and AJAX logic without needing external stylesheet uploads.
-
Localization Ready: Pre-configured translation array (
i18n) in JavaScript for easy label editing.
FAQ (Frequently Asked Questions)
-
Q: Can I customize the color scheme?
-
A: Yes, you can edit the CSS variable
--sng-purpleinside the code snippet to match your brand colors.
-
-
Q: How many names are generated per click?
-
A: The plugin returns a randomized set of 40 names from a curated list of snack-related suffixes.
-
-
Q:Does it require an API key?
-
A: No, the generator operates entirely on custom PHP logic without third-party API dependencies.
-
Disclaimers & Notes
-
Always back up your website before adding custom snippets directly to your theme’s
functions.phpfile. -
Using a child theme or the Code Snippets plugin is strongly recommended to prevent code erasure during theme updates.








Reviews
There are no reviews yet.