themosis / documentation

Official documentation of the Themosis framework.
http://framework.themosis.com/
52 stars 37 forks source link

PLugin define key in supports.config.php theme #47

Closed Givx closed 7 years ago

Givx commented 7 years ago

I don't know for not display this message :

Your application do not handle the following plugin:

Inside the file, "Define your plugin theme support key. Once defined, make sure to add the key into your theme supports.config.php in order to remove this admin notice"

In the documentation is not really clear

jlambe commented 7 years ago

Inside the plugin, you had to define a plugin key inside the $vars array. From your theme, in the supports.config.php, add your plugin key to the array in order to tell that your theme is supporting your custom plugin.

Givx commented 7 years ago

i already doing that, but the message not disapear

jlambe commented 7 years ago

Can you post your plugin main file and supports config one?

Givx commented 7 years ago

ok i understand if the active theme is not a themosis theme you have this message. Sorry.

jlambe commented 7 years ago

Or if your theme is a "classic" theme, just call the add_theme_supports('plugin-key');