Redux Framework Plugin: Remove WordPress Ads Banner
Redux Framework is a very useful WP plugin. We'll explore all about the Redux framework plugin and how to remove WordPress ads banners.
The Redux Framework is a very useful WordPress plugin no doubt. A lot of WordPress themes and Plugin developers are using this Framework around the world. In today’s article, we’ll explore all about the Redux framework plugin and how to remove WordPress ads banners.
However, when WP_DEBUG
is true
the Framework displays admin notices and an Ad Banner at the top of the Framework options window / theme options panel.
To remove all that stuff doesn’t affect whether you set dev_mode
to true
or false
. Actually, it’s a little annoying when you are using the Framework in a development environment.
How To Remove Redux Banners Ads?
So here is how you can get rid of those Admin Notices and Banner Ads.
1. Open your options-config.php file and set a new argument 'forced_dev_mode_off' => true
in the Framework arguments array.
Once you set 'forced_dev_mode_off' => true
it will display a red notice on the Framework Options window. Follow the step 2 to remove that red notice too.
2. If you have embedded Redux Framework code into your theme, then open ReduxCore/templates/panel/head.ertpl.php and find the following code block around line #54 (depending on the version of Framework)
<div class="redux-dev-mode-notice-container redux-dev-qtip" qtip-title="<?php echo esc_attr( $tip_title ); ?>" qtip-content="<?php echo esc_attr( $tip_msg ); ?>">
<span class="redux-dev-mode-notice" style="background-color: #FF001D;"><?php _e( 'FORCED DEV MODE OFF ENABLED', 'redux-framework' ); ?></span>
</div>
Comment out the whole block and you’re done!
However, if you are using Framework as a plugin, then you can hide that red notice by adding the following code to any admin CSS file.
.redux-dev-mode-notice-container.redux-dev-qtip { display: none; }
All Visualmodo WordPress themes offer this great plugin for a better user experience.
What is this framework?
Is a simple, truly extensible, and fully responsive options framework for WordPress themes and plugins. Built on the WordPress Settings Redux API, supports a multitude of field types as well as: custom error handling, custom fields & validation types, and import/export functionality.
But what does actually DO? We don’t believe that theme and plugin developers should have to reinvent the wheel every time they start work on a project. It’s designed to simplify the development cycle by providing a streamlined, extensible framework for developers to build on. Through a simple, well-documented config file, third-party developers can build out an options panel limited only by their own imagination in a fraction of the time it would take to build from the ground up!