The Beautiful Cookie Banner WordPress plugin, with the premium add-on (version 3.9.0 and higher), now includes support for customizable placeholders for blocked iframes. While a variety of built-in options are available, you can also create your own custom template for complete control.

Creating a Custom Template
- Retrieve the Original Template: The default template is located at /wp-content/plugins/beautiful-and-responsive-cookie-consent-addon/build-files/block-placeholder/block.html
.
Copy this file, as it will be overwritten during plugin updates. - Store the Template: Create a new directory at /wp-content/nsc-bara-beautiful-cookie-banner-addon-files/block-placeholder-template if it doesn’t already exist. Paste your copied template file into this new directory.
- Rename the File: Rename the copied file to
custom_block.html
. The final path should be /wp-content/nsc-bara-beautiful-cookie-banner-addon-files/block-placeholder-template/custom_block.html. - Customize the Template: You can now modify custom_block.html to fit your design. Important: Ensure that the JavaScript and special variables, such as ‘
{{block-placeholder-lang-file}}
‘, remain intact to maintain compatibility with the plugin’s settings in the WordPress admin.
Your custom template will be automatically applied the next time you save your cookie banner settings.
☝️ It is recommended to only place a finished file in the designated directory, as it will be used as soon as the file is placed there.