How to permanently hide the white label settings of Astra Theme

For many developers and organizations, using Astra Themes may need to have theirWhite LabelSetting up the hide.In case a customer sees that the plugin or theme is provided by a third partyThe Astra theme itself provides the ability to hide white labeling, but these settings are restored when the plugin is reactivated. To help organizations that serve multiple clients, a method was introduced that enables the white label settings to bepersistent hidingThe

如何永久隐藏 Astra 主题的白标设置

What are white label constants?

White-label constants are created by adding a white-label to the wp-config.php file by adding specific code to it. This approach ensures that the Astra The white label settings of the theme and its associated plugins will not be changed due to user action or plugin reactivation, thus enabling permanent hiding.

图片[2]-如何永久隐藏 Astra 主题的白标设置

How to Permanently Hide Astra White Label Settings with White Label Constants

Here are the steps to help in wp-config.php file to set the white label constants:

Step 1: Open and edit wp-config.php file

First, find and open the WordPress in the root directory wp-config.php file. This file contains many of the core settings, and modifying it will affect the site configuration.

Step 2: Add White Label Constant Code

Find the following line in the file:

/* That's all, stop editing! Happy blogging. */

Then, add the white label constant code before the line.

Step 3: Add White Label Constant Code

Below is a sample code to update the values of the constants as per the requirement. With these constants, the value of the Astra The theme and plugin provide custom strings for all white label settings.

define( 'AST_WL_ASTRA_AGENCY_AUTHOR', 'Agency Author' );
define( 'AST_WL_ASTRA_AGENCY_AUTHOR_URL', 'www.your-website-url.com' ); define( 'AST_WL_ASTRA_AGENCY_LICENSE', 'Agency Author' )
define( 'AST_WL_ASTRA_AGENCY_LICENCE', 'www.your-get-licence-url.com' );
define( 'AST_WL_ASTRA_NAME', 'Fastest WP Theme' ); define( 'AST_WL_ASTRA_NAME', 'Fastest WP Theme' )
define( 'AST_WL_ASTRA_DESCRIPTION', 'WordPress theme' ); define( 'AST_WL_ASTRA_NAME', 'Fastest WP Theme' )
define( 'AST_WL_ASTRA_SCREENSHOT', 'www.your-theme-screenshot-url.com' ); define( 'AST_WL_ASTRA_SCREENSHOT', 'www.your-theme-screenshot-url.com' )
define( 'AST_WL_ASTRA_PRO_NAME', 'Pro Addon' ); define( 'AST_WL_ASTRA_PRO_NAME', 'Pro Addon' )
define( 'AST_WL_ASTRA_PRO_DESCRIPTION', 'Pro Addon extends the features of theme' ); define( 'AST_WL_ASTRA_PRO_DESCRIPTION', 'Pro Addon extends the features of theme' ); define( 'AST_WL_ASTRA_PRO_DESCRIPTION', 'Pro Addon' )
define( 'AST_WL_ASTRA_SITES_NAME', 'Ready Sites' ); define( 'AST_WL_ASTRA_SITES_NAME', 'Ready Sites' )
define( 'AST_WL_ASTRA_SITES_DESCRIPTION', 'Library of Ready sites' ); define( 'AST_WL_ASTRA_SITES_NAME', 'Ready sites' ); define( 'AST_WL_ASTRA_SITES_DESCRIPTION', 'Library of Ready sites' )
define( 'AST_WL_BSF_LW_SB_NAME', 'Custom Sidebar Manager' ); define( 'AST_WL_BSF_LW_SB_NAME', 'Custom Sidebar Manager' )

define( 'AST_WL_ASTRA_HOOKS_NAME', 'Hooks for theme' ); define( 'AST_WL_ASTRA_HOOKS_NAME', 'Hooks for theme' ); define( 'AST_WL_ASTRA_HOOKS_NAME'; 'Hooks for theme' )
define( 'AST_WL_ASTRA_HOOKS_DESCRIPTION', 'Use hooks to put custom code' ); define( 'AST_WL_ASTRA_HOOKS_NAME', 'Hooks for theme' ); define( 'AST_WL_ASTRA_HOOKS_DESCRIPTION', 'Use hooks to put custom code' )
define( 'AST_WL_BSF_CUSTOM_FONTS_NAME', 'My Custom Fonts' ); define( 'AST_WL_ASTRA_HOOKS_DESCRIPTION' ); define( 'AST_WL_BSF_CUSTOM_FONTS_NAME', 'My Custom Fonts' )

define( 'AST_WL_CUSTOM_TYPEKIT_FONTS_NAME', 'My fonts' ); define( 'AST_WL_CUSTOM_TYPEKIT_FONTS_NAME', 'My fonts' ); define( 'AST_WL_CUSTOM_TYPEKIT_FONTS_NAME')
define( 'AST_WL_CUSTOM_TYPEKIT_FONTS_DESCRIPTION', 'Add custom typekit font' );

White label constants and their corresponding settings:

Astra Themes and Astra Pro Plugins

White Label SettingWhite label constants
Agency Author NameAST_WL_ASTRA_AGENCY_AUTHOR
Agency Author URLAST_WL_ASTRA_AGENCY_AUTHOR_URL
Agency License URLAST_WL_ASTRA_AGENCY_LICENCE
Astra Theme NameAST_WL_ASTRA_NAME
Astra Theme DescriptionAST_WL_ASTRA_DESCRIPTION
Astra Theme ScreenshotAST_WL_ASTRA_SCREENSHOT
Astra Pro Nameast_wl_astra_pro_name
Astra Pro Descriptionast_wl_astra_pro_description

Starter Templates plug-in or Astra Premium Sites plug-in

White Label SettingWhite label constants
Astra Sites Nameast_wl_astra_sites_name
Astra Sites DescriptionAST_WL_ASTRA_SITES_DESCRIPTION

Lightweight Sidebar Manager Plugin

White Label SettingWhite label constants
Sidebar Manager Nameast_wl_bsf_lw_sb_name
Sidebar Manager Descriptionast_wl_bsf_lw_sb_description

Astra Hooks Plugin

White Label SettingWhite label constants
Astra Hooks Nameast_wl_astra_hooks_name
Astra Hooks DescriptionAST_WL_ASTRA_HOOKS_DESCRIPTION

Customized Font Plugin

White Label SettingWhite label constants
Custom Fonts Nameast_wl_bsf_custom_fonts_name
Custom Fonts DescriptionAST_WL_BSF_CUSTOM_FONTS_DESCRIPTION

Adobe Fonts (Custom Typekit Fonts)

White Label SettingWhite label constants
Adobe Fonts NameAST_WL_CUSTOM_TYPEKIT_FONTS_NAME
Adobe Fonts DescriptionAST_WL_CUSTOM_TYPEKIT_FONTS_DESCRIPTION

summarize

Through the use of the wp-config.php Setting these white label constants in the file permanently hides the Astra Themes and plugins forwhite labelSettings are set so that they do not change whether the plugin is reactivated or not. This method is useful for developers and organizations that serve multiple clients, ensuring brand consistency and that clients cannot see any third-party plugin or theme information.

Related articles


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:托尼屎大颗
THE END
If you like it, support it.
kudos132 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments