Themecheck Plugin Recommendation

I have found the following recommendations from themecheck plugin for my WordPress theme:

• RECOMMENDED: No reference to add_theme_support( “custom-header”, $args ) was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
• RECOMMENDED: No reference to add_theme_support( “custom-background”, $args ) was found in the theme. If the theme uses background images or solid colors for the background, then it is recommended that the theme implement this functionality.
• RECOMMENDED: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.

As far as I know (from this article: https://help.market.envato.com/hc/en-us/articles/202822450-WordPress-Theme-Submission-Requirements) that the first two recommendations are allowable exceptions.
.
In addition to these recommendations I have found another CRITICAL ALERT from themecheck.org for the add_theme_page() function like this:
• Admin menu : Themes should use add_theme_page() for adding admin pages. File b-redux-theme-options.php :
Line 67: // For a full list of options, visit: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters

But my concern is for the last one.
.
And an warning for add_editor_style():

  1. Editor style : Presence of editor styleNo reference to add_editor_style() was found in the theme. It is recommended that the theme implements editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.

.

Now what can I do for add_editor_style() and add_theme_page()?
.
Are they allowable exceptions or not for Themeforest Theme release?
.
Thanks. :slight_smile:

Hello!

If you want to skip a new soft rejection you should add these implementations into your theme.

Use WordPress Codex to understand how to use add_editor_style.

If you use add_theme_page(), simply move it into a plugin. See tutorial on how to create a plugin.

Good Luck :sunny:

1 Like

Thanks much :slight_smile:

Dear ThemeSLR,
I have used Redux Framework as a plugin as you see here:
• Admin menu : Themes should use add_theme_page() for adding admin pages. File b-redux-theme-options.php :
Line 67: // For a full list of options, visit: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters

And now do I have to use this function add_theme_page()?
To tell the truth, I don’t get the point :frowning:
This Line 67 is from the redux framework’s sample-config.php which I have modified.

Are you using the sample-config.php from the plugin? I just made a check. There is no add_theme_page() in there…

See the file on GitHub (from latest version). This is the sample config you need to use in your theme, which is Theme Check ready :slight_smile:

1 Like

Yeah! You’re absolutely right. I have used the sample-config.php from the plugin and there is no add_theme_page() in there. Please, look carefully the CRITICAL ALERT in the post…
The themecheck plugin doesn’t show any warning or anything. This CRITICAL ALERT is from themecheck.org(the online themecheck service).
And the CRITICAL ALERT in
Line 67: // For a full list of options, visit: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters

is a comment one.
.
My problem is I don’t understand what to do.
Do I have to include the add_theme_page() in that sample-config.php or not?
Thank you so much for your time, :slight_smile: