描述
This plugin provides a clean, lightweight solution for creating popups in WordPress. It uses a custom post type to manage popups and displays them in the site footer. Popups can be triggered via anchor links or JavaScript.
Features
- Create unlimited popups via WordPress admin
- Custom post type for easy management
- Support for shortcodes (Contact Form 7, etc.)
- Responsive design
- Click outside or × button to close
- URL hash-based triggering
- Scroll lock when popup is open
Support
If you want to buy me a coffee, write me a message to [email protected]
安装
- Upload the
yap-yet-another-popupsfolder to/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to YAP – Yet Another Popups Add New Popup to create your first popup
常见问题
-
How do I create a popup?
-
- In WordPress admin, go to Popups Add New Popup
- Enter a title (displayed as popup heading)
- Add content in the editor (supports HTML and shortcodes)
- Click Publish
- Copy the Popup Slug from the meta box (e.g.,
#yapopup123)
-
How do I open a popup?
-
Add a link with the href equal to the popup slug:
<a href="#yapopup123">Open Popup</a> -
Does this work with Contact Form 7?
-
Yes! You can add any shortcode including Contact Form 7 in the popup content editor.
-
Can I customize the popup styles?
-
Yes, override the CSS classes in your theme’s stylesheet. See the Customization section in the plugin settings page.
评价
此插件暂无评价。
