{"id":343581,"date":"2026-07-30T00:44:48","date_gmt":"2026-07-30T00:44:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/homepage-popup-notice\/"},"modified":"2026-07-30T00:44:19","modified_gmt":"2026-07-30T00:44:19","slug":"homepage-popup-notice","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/homepage-popup-notice\/","author":20421663,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"1.0.2","tested":"7.0.2","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Homepage Popup Notice","header_author":"ts\u5c0f\u9648","header_description":"A lightweight popup notice plugin with 3 styles: card popup, modal overlay, and toast notification. \u5f39\u7a97\u516c\u544a\uff0c\u4e00\u6b3e\u7b80\u5355\u6613\u7528\u7684WordPress\u9996\u9875\u5f39\u7a97\u516c\u544a\u63d2\u4ef6\uff0c\u652f\u6301\u4e09\u79cd\u5f39\u7a97\u6837\u5f0f\u3002","assets_banners_color":"9298b9","last_updated":"2026-07-30 00:44:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.kqwq.com\/wordpress\/plugins\/3241.html","header_author_uri":"https:\/\/www.kqwq.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":32,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.2":{"tag":"1.0.2","author":"tsxcc","date":"2026-07-30 00:44:19"}},"upgrade_notice":{"1.0.1":"<p>Security and guideline compliance update. Custom CSS feature has been removed. Please review your popup styling after updating.<\/p>","1.0.0":"<p>This is a complete rewrite. You will need to reconfigure your popup settings after upgrading. Please back up your old settings before updating.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3627890,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3627890,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3627890,"resolution":"772x250","location":"assets","locale":"","width":3488,"height":1120}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3627890,"resolution":"1","location":"assets","locale":"","width":1200,"height":900}},"screenshots":{"1":"Plugin settings page \u2014 visual style selector with preview cards","2":"Style 1 \u2014 Centered card popup with logo","3":"Style 2 \u2014 Modal overlay popup","4":"Style 3 \u2014 Toast notification"}},"plugin_section":[],"plugin_tags":[7540,1334,491,193963,273747],"plugin_category":[],"plugin_contributors":[273748],"plugin_business_model":[],"class_list":["post-343581","plugin","type-plugin","status-publish","hentry","plugin_tags-announcement","plugin_tags-notice","plugin_tags-popup","plugin_tags-193963","plugin_tags-273747","plugin_contributors-tsxcc","plugin_committers-tsxcc"],"banners":{"banner":"https:\/\/ps.w.org\/homepage-popup-notice\/assets\/banner-772x250.png?rev=3627890","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/homepage-popup-notice\/assets\/icon-128x128.png?rev=3627890","icon_2x":"https:\/\/ps.w.org\/homepage-popup-notice\/assets\/icon-256x256.png?rev=3627890","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/homepage-popup-notice\/assets\/screenshot-1.png?rev=3627890","caption":"Plugin settings page \u2014 visual style selector with preview cards"}],"raw_content":"<!--section=description-->\n<p>Homepage Popup Notice (\u5f39\u7a97\u516c\u544a) is a simple yet powerful popup plugin for WordPress. Display announcements, promotions, or important notices on your site's homepage with three distinct styles. No complex configuration needed \u2014 just activate, customize, and go.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li><strong>3 Popup Styles<\/strong>: Centered card popup, modal overlay, and toast notification<\/li>\n<li><strong>Customizable Content<\/strong>: Logo image, button text, links, and custom CSS<\/li>\n<li><strong>jQuery Compatibility<\/strong>: Optional downgrade to jQuery 2.1.4 for legacy themes<\/li>\n<li><strong>Smart Display<\/strong>: Cookie-based frequency control (once per day)<\/li>\n<li><strong>Lightweight<\/strong>: No external dependencies, minimal footprint<\/li>\n<li><strong>Translation Ready<\/strong>: Full i18n support with .pot file<\/li>\n<\/ul>\n\n<h4>Style Preview<\/h4>\n\n<ul>\n<li><strong>Style 1 \u2014 Centered Card Popup<\/strong>: A centered card with logo avatar, close button, and action link. Perfect for brand announcements.<\/li>\n<li><strong>Style 2 \u2014 Modal Overlay<\/strong>: Full-screen semi-transparent overlay with centered modal. Ideal for important notices.<\/li>\n<li><strong>Style 3 \u2014 Toast Notification<\/strong>: Growl\/Toast-style notification that auto-dismisses. Great for subtle alerts.<\/li>\n<\/ul>\n\n<h4>Usage<\/h4>\n\n<ol>\n<li>Activate the plugin<\/li>\n<li>Go to Settings \u2192 \u5f39\u7a97\u516c\u544a (Homepage Popup Notice)<\/li>\n<li>Choose your popup style and customize content<\/li>\n<li>Save and view your site!<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> directory, or install via WordPress plugin installer.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Go to <strong>Settings \u2192 \u5f39\u7a97\u516c\u544a<\/strong> (Homepage Popup Notice) to configure.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"the%20popup%20is%20not%20showing.%20what%20should%20i%20do%3F\"><h3>The popup is not showing. What should I do?<\/h3><\/dt>\n<dd><p>Please check:\n1. The plugin is activated and you've saved popup content in settings.\n2. Enable \"\u4fee\u590d2\" (Cookie fix) in the plugin settings.\n3. Check browser console for JavaScript errors.<\/p><\/dd>\n<dt id=\"my%20site%27s%20javascript%20broke%20after%20installing%20this%20plugin.\"><h3>My site's JavaScript broke after installing this plugin.<\/h3><\/dt>\n<dd><p>WordPress ships with a modern version of jQuery. This plugin uses the built-in jQuery. If you encounter issues, try updating your theme.<\/p><\/dd>\n<dt id=\"does%20the%20popup%20show%20every%20page%20load%3F\"><h3>Does the popup show every page load?<\/h3><\/dt>\n<dd><p>No. Style 1 and Style 2 use cookies to remember when a user closes the popup, so it only shows once per day per user.<\/p><\/dd>\n<dt id=\"can%20i%20customize%20the%20popup%20appearance%3F\"><h3>Can I customize the popup appearance?<\/h3><\/dt>\n<dd><p>Yes! Each style has its own content editor and color options in the plugin settings.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20work%20with%20caching%20plugins%3F\"><h3>Does this plugin work with caching plugins?<\/h3><\/dt>\n<dd><p>Yes. The popup is rendered via wp_footer action and works with most caching plugins.<\/p><\/dd>\n<dt id=\"%E5%BC%B9%E7%AA%97%E4%B8%8D%E6%98%BE%E7%A4%BA%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F\"><h3>\u5f39\u7a97\u4e0d\u663e\u793a\u600e\u4e48\u529e\uff1f<\/h3><\/dt>\n<dd><p>\u8bf7\u68c0\u67e5\uff1a\n1. \u786e\u4fdd\u63d2\u4ef6\u5df2\u6fc0\u6d3b\uff0c\u4e14\u5728\u8bbe\u7f6e\u4e2d\u5df2\u4fdd\u5b58\u5f39\u7a97\u5185\u5bb9\u3002\n2. \u5728\u8bbe\u7f6e\u4e2d\u52fe\u9009\u300c\u4fee\u590d2\u300d\uff08Cookie \u652f\u6301\uff09\u3002\n3. \u68c0\u67e5\u6d4f\u89c8\u5668\u63a7\u5236\u53f0\u662f\u5426\u6709 JS \u9519\u8bef\u3002<\/p><\/dd>\n<dt id=\"%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6%E5%90%8E%E7%BD%91%E7%AB%99%E5%89%8D%E5%8F%B0%20js%20%E5%A4%B1%E6%95%88%E4%BA%86%EF%BC%9F\"><h3>\u5b89\u88c5\u63d2\u4ef6\u540e\u7f51\u7ad9\u524d\u53f0 JS \u5931\u6548\u4e86\uff1f<\/h3><\/dt>\n<dd><p>WordPress \u81ea\u5e26\u6700\u65b0\u7248 jQuery\uff0c\u672c\u63d2\u4ef6\u4f7f\u7528\u9ed8\u8ba4 jQuery\u3002\u5982\u9047\u517c\u5bb9\u95ee\u9898\uff0c\u8bf7\u66f4\u65b0\u60a8\u7684\u4e3b\u9898\u3002<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Renamed js.cookie.js to cookie.js for broader filesystem compatibility<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Removed custom CSS\/JS input fields (WP.org guideline compliance)<\/li>\n<li>Replaced inline style\/script tags with wp_add_inline_style \/ wp_add_inline_script<\/li>\n<li>Fixed nonce sanitization (wp_unslash + sanitize_text_field)<\/li>\n<li>Removed bundled jQuery (use WordPress built-in)<\/li>\n<li>Updated js-cookie to v3.0.8<\/li>\n<li>Removed load_plugin_textdomain() (automatic in WP 4.6+)<\/li>\n<li>Tested with WordPress 7.0<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Complete rewrite: WordPress Settings API replaces Redux Framework<\/li>\n<li>All obfuscated\/encrypted code removed<\/li>\n<li>External update checker removed<\/li>\n<li>Phone-home tracking on activation removed<\/li>\n<li>Bundled Redux Framework removed<\/li>\n<li>New admin page: Settings \u2192 \u5f39\u7a97\u516c\u544a<\/li>\n<li>Full i18n support (.pot file included)<\/li>\n<li>All functions prefixed with hppn_<\/li>\n<li>All output properly escaped (esc_*, wp_kses_post)<\/li>\n<li>Complete sanitize callback for all options<\/li>\n<li>Visual style selector with preview images<\/li>\n<li>Color picker and media upload support<\/li>\n<li>Tested with WordPress 6.9<\/li>\n<\/ul>","raw_excerpt":"A lightweight WordPress popup plugin with 3 styles for announcements, notifications, or ads. \u5f39\u7a97\u516c\u544a\u63d2\u4ef6\uff0c\u652f\u6301\u5c45\u4e2d\u5361\u7247\u3001\u6a21\u6001\u906e\u7f69\u3001\u4fa7\u8fb9\u901a\u77e5\u6761\u4e09\u79cd\u6837\u5f0f\u3002","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/343581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=343581"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tsxcc"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=343581"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=343581"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=343581"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=343581"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=343581"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=343581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}