Description
BlogDoSEO Disclaimer +18 displays a professional age verification modal that blocks access to your site until the visitor confirms they are 18 years of age or older.
Features
- Dark and Light themes
- Display the notice across the entire site or only on selected post categories
- Optional subcategory inclusion, covering matching posts and category archives
- English, Brazilian Portuguese and Simplified Chinese translations included
- Automatic language detection with an optional manual language selection
- Redesigned admin interface and developer support tab with PayPal and Pix
- Custom logo support (PNG, JPG, WebP, SVG), with a WordPress Media Library picker, inside/outside position, size and opacity controls
- Full content customization: title, description, button texts, denial screen
- HTML formatting in both notice descriptions: links, bold, italics, line breaks, paragraphs and lists
- Custom colors for buttons, modal background and text, with synchronized color pickers and hexadecimal inputs
- Background image support for the overlay
- Redirect visitors who click NO to any URL
- Choose to show the notice on every protected page visit or remember confirmation for 30 days
- Scroll lock while the modal is open
- Blur effect on background content
- Fully responsive (mobile and desktop)
- Keyboard-friendly modal with focus management
- Intuitive admin panel with tabs: General, Content, Design, Advanced
Privacy
When “Remember confirmation for 30 days” is selected, this plugin uses a browser cookie (blogdoseo_disclaimer_accepted) to remember the visitor’s choice. “Every page visit” ignores previous confirmations and does not save a new confirmation cookie. No personal data is collected or sent to external servers.
Installation
- Upload the blogdoseo-disclaimer folder to the /wp-content/plugins/ directory, or install directly via the WordPress plugin screen.
- Activate the plugin through the Plugins menu in WordPress.
- Go to Settings > Disclaimer +18 to configure the plugin.
FAQ
Can I display the notice only in specific categories?
Yes. Go to Settings > Disclaimer +18 > General, choose “Selected categories only”, select the categories and save. The notice appears on posts assigned to any selected category and on those category archives. Enable “Include subcategories” to also include descendant categories and their posts, including subcategories created later. Disable it to match only the categories explicitly selected.
In category mode, the homepage, search results, pages, tags, author/date archives and unrelated categories do not display the notice. If no categories are selected, it is not displayed anywhere. Empty categories are available in the selector. Existing installations continue to use “Entire site” until you change this setting. The notice frequency setting determines whether visitors must confirm on every protected page visit or can be remembered for 30 days.
Does this plugin work with current WordPress and PHP versions?
Version 1.2.0 was tested with WordPress 7.1.4, the latest stable WordPress release at the time of testing, and PHP 8.5.5. Tests covered category matching, subcategories, settings persistence, desktop/mobile display, both notice frequency modes, existing cookies, browser-history restoration, all three included languages, automatic language detection, manual language overrides, custom text preservation and donation copy buttons.
Does the plugin detect my language automatically?
Yes. Automatic is the default. The admin follows your WordPress profile language when one is explicitly set; otherwise it uses your browser language, with the site language as a fallback if no browser preference is available. Visitors see the built-in notice in their browser language, even on cached pages. English, Brazilian Portuguese and Simplified Chinese are included; unsupported languages fall back to English. To use one language for everyone, select it under General > Language and save.
Text you customize under Content is preserved exactly as written. Only the built-in default notice text is translated automatically. Existing saved default text from earlier versions is also recognized and translated.
How can I support the developer?
Open the Support Developer tab for PayPal and Pix details. Both use euhtbr@gmail.com. The tab includes buttons to copy the Pix email key or PayPal email. Donations are voluntary and do not affect plugin features.
Version 1.1.0 was functionally tested with WordPress 7.1 and PHP 8.5.10. Tests covered activation, settings, desktop and mobile display, cookie persistence, custom content and logo position, light-theme colors, keyboard navigation, the Media Library picker, and the configured redirect. Minimum requirements remain WordPress 5.0 and PHP 7.4.
Can I change the button texts?
Yes. Go to Settings > Disclaimer +18 > Content tab and update the YES and NO button texts to anything you like.
How can I share feedback about the plugin?
The plugin settings include an optional invitation to write an honest review on WordPress.org or suggest an improvement in the support forum. Choose “Do not show again” to permanently hide this invitation on your site. These links open only when clicked and do not send feedback automatically.
Can I use my own logo?
Yes. In the General tab, choose an image from the WordPress Media Library or paste its full URL. You can also adjust its position, size and opacity.
What happens when a visitor clicks NO?
The visitor sees the denial screen first. Its Back button redirects to the URL set in the Advanced tab; by default, that URL is Google.
How long is the visitor’s choice remembered?
Choose the behavior under General > Notice frequency. “Remember confirmation for 30 days” saves a confirmation cookie; after 30 days the notice appears again. “Every page visit” asks again whenever a protected page is opened, reloaded or restored using browser history, even if the visitor has an existing confirmation cookie. Existing installations keep the 30-day behavior until you change this setting.
Can I enter colors in hexadecimal?
Yes. Under Design, each button, modal-background and text color has both a visual picker and a HEX text field. They stay synchronized. Enter a six-digit code such as #ff6600, or a three-digit shorthand such as #f60. The # is optional when typing. Invalid codes are rejected before saving.
Can I use HTML in the descriptions?
Yes. Under Content, both Description and Denial Screen Description accept HTML formatting, including links, bold, italics, line breaks, paragraphs and lists. Paste or type your HTML and save. HTML is filtered using WordPress’s allowed post-content tags. Titles and button labels remain plain text. Existing plain-text descriptions continue to work.
Does the plugin work on mobile?
Yes, the modal is fully responsive and adapts to any screen size.
Screenshots
Changelog
1.2.0
- Added HTML support to the notice description and denial-screen description, with WordPress HTML filtering
- Added a red italic weekly-update note below the existing review invitation text
- Added synchronized hexadecimal color inputs in Design settings, with support for 3- and 6-digit hex codes and validation
- Added entire-site or selected-categories display modes in General settings
- Added a category selector, including empty categories, with optional subcategory inclusion
- Applied the same category rules to frontend assets and modal markup
- Preserved site-wide behavior for existing installations and the existing confirmation cookie
- Added a notice frequency option: every protected page visit or remember confirmation for 30 days
- Every-page mode ignores existing acceptance cookies and reopens the notice on browser-history restoration
- Added complete English, Brazilian Portuguese and Simplified Chinese translations
- Added automatic admin/browser language detection and a manual language option
- Preserved custom notice text while translating built-in defaults, including saved defaults from earlier releases
- Refreshed the admin layout and redesigned the support tab with PayPal, Pix and copy buttons
- Verified compatibility with WordPress 7.1.4 on PHP 8.5.5
1.1.0
- Added a dismissible invitation in plugin settings to share an honest WordPress.org review or suggest an improvement
- Removed the automatic focus outline around modal headings while keeping keyboard focus indicators on buttons
- Added an internal Active/Disabled switch with toast confirmation, so the plugin can be turned on or off from its own settings
- Added WordPress Media Library image picker and preview
- Added functional outside logo position
- Fixed custom colors in the light theme
- Improved keyboard navigation, focus handling and mobile layout
- Added safer validation for logo size and opacity
- Tested with WordPress 7.1 and PHP 8.5.10
1.0.0
- Initial release
- Dark and light themes
- Custom logo with size and opacity controls
- Full content and color customization
- Background image support
- Cookie-based memory (30 days)
- Redirect on NO
- Responsive layout





