• Resolved Omer Faruk

    (@hefnjosch)


    Hi,

    I’m developing a new WordPress theme. I want to use your plugin with my theme. But i don’t want users to access the plugin settings page. Can I use it embedded in the theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    Hi Omer,

    This question has come up a couple times recently. “Out of the box” this plugin will not load properly if included in a theme directory instead of as a plugin, as the paths to the assets looks in the plugins folder.

    You could modify those paths when placing the plugin in your theme folder to make it work, and I may make changes to this in a future release. However the use case you describe is not one that I really want to see people using.

    By having this plugin in the theme, it will be excluded from the normal plugin update process. Plugin updates are an important part of WordPress, both for functionality and security reasons. For instance there was a patch to this plugin (v2.1.0) that prevented icons breaking for the (then upcoming) FontAwesome 5.x release.

    I understand it is still important at times to ship plugins with a theme, and there is a good solution I’ve used in the past: TGM Plugin Activation.

    Let me know what your thoughts are.

    Matt Keys

    Thread Starter Omer Faruk

    (@hefnjosch)

    Thank you for your reply Matt,

    I actually know what you’re talking about. Normally I do this with TGM. However I have developed the theme compatible with FontAwesome 5.x version. Some users may forget to check the v5 option in your plugin settings. In this case, they can not use some functions of the theme correctly. I do not want them to have problems in this regard.

    Thank you for the help. And thank you for developing this great plugin. I will think a little more and decide what will be more accurate. And of course I will continue to use your wonderful plugin.

    Sorry for my English, I guess I need to work harder for this ??

    Plugin Author Matt Keys

    (@mattkeys)

    Sorry for my English

    I am understanding you perfectly!

    However I have developed the theme compatible with FontAwesome 5.x version. Some users may forget to check the v5 option in your plugin settings.

    Right now FontAwesome 5.x support is only in the beta of this plugin. Just so you know, when 5.x support is released in the stable version, it will ‘smart select’ the right version of FontAwesome to use. It will work like this:

    – If the user is upgrading from a previous version of the plugin which uses v4.x, it will continue using v4.x. The user can chose to switch to v5.x if they want in the settings.

    – If the user is installing this plugin for the first time, it will default to v5.x. The user can chose to switch to v4.x if they want in the settings.

    I hope this helps.

    Matt Keys

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using with commerical theme (for developers)’ is closed to new replies.