Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi Bob,

    what do you mean with: “How can I include this plugin in the child theme?”.

    This plugin works with any kind of theme…

    Could you please tell me in more details, what the problem is?

    Take care!

    Thread Starter wpwebbiepro

    (@webbiepro777)

    Hi capuderg,

    Thanks for the quick reply.
    What I mean is:

    1. Create folder in child theme
    2. Put plugin in there
    3. Use the following function in functions.php

    include( get_stylesheet_directory() . '/one-click-demo-import/one-click-demo-import.php' );

    This works except for the JS an CSS.

    Regards,
    Bob

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi Bob,

    why would you want to do that? This is not a good idea… Why don’t you just use the plugin normally?

    Anyway, I don’t know what else you would have to do, to make it work as I never did something like this before. A plugin should be used as a plugin and not included in themes. Probably some custom coding would have to be done, but again this is a bad idea.

    If you need to recommend the plugin in your themes, please use TGMPA for that.

    Take care!

    Thread Starter wpwebbiepro

    (@webbiepro777)

    Thanks for the reply. Probably leave it in the plugins folder.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Include plugin in child theme’ is closed to new replies.