Tagged: path, theme, Theme setup
- This topic has 8 replies, 6 voices, and was last updated 7 years, 3 months ago by
Steve.
-
AuthorPosts
-
-
February 2, 2013 at 7:32 pm #669
sebascarMemberHi,
is it possible to load PikList within my Theme/Plugin without having to installa PikList from the WordPress Repository?
-
February 2, 2013 at 9:57 pm #671
SteveKeymaster@sebascar– You can include Piklist in your plugin or theme just like any other plugin. You would want to require_once piklist.php from your main plugin file or your theme’s functions.php file.
However, this really is not recommended.
By doing this, your users will not be able to upgrade Piklist in the future. A better way is to include the “Piklist Checker” code in your theme or plugin. This code checks if Piklist is installed and if not, will notify the user.
You can see how it works by checking our our WordPress Helpers plugin. Try activating it without Piklist.
The latest version of Piklist Checker can always be found here.
-
March 21, 2014 at 6:32 pm #1591
tripflexMemberI understand where both of you are coming from. I believe though that it would be nice to be able to do this is you don’t want dependencies in your plugin. I understand it helps as framework but a lot of the times this could deter users from wanting to install a plugin or giving a more “transparent” plugin that can be distributed easier.
For example I use Caldera Engine which allows to export as a plugin, and leaves it up to the plugin developer/maintainer to keep it up to date.
-
April 17, 2014 at 7:03 am #1652
leonardotessaroMemberI have the same issue! i add the folder picklist on my own theme and add the function require_once…
c:\frutabox\wp-content\themes\frutabox\picklist\picklist.php
////functions
require_once (picklist/piklist.php);
the classes are loaded, and i can see the the picklist demos. But, the images & js path are with path of plugin_url.i dont have the plugin folder picklist, this is necessary?
-
October 12, 2014 at 9:54 pm #2559
AshfaqMemberI have the same problem, When embedding in theme without plugin.
Piklist options load but resource files like CSS and JS are appearing with Plugin Directory.
Can any one help please?
-
October 12, 2014 at 10:10 pm #2560
AshfaqMemberHello Guys,
I want to embed “PikList” in my theme without installing plugin. everything works as related to classes when we include “itit.php” in theme’s “functions.php” file.
But “PikList” resources like CSS and JS are still appearing as “Plugin” url and not loading because there is no plugin in plugin folder.
How we can change the path to load from Theme folder??
Any help is appreciated.
-
October 13, 2014 at 10:22 am #2561
JasonKeymasterGreetings!
May I ask why you’re attempting to embed it within the theme versus using the plugin? What’s the merit?
-
October 13, 2014 at 11:05 am #2562
AshfaqMemberBecause I want to embed it into a premium theme, and I don’t want to give user a notice to install plugin.
-
-
October 14, 2014 at 9:56 am #2565
SteveKeymaster@ashfaq– Kevin and I have discussed this in great length, and I don’t think we are going to support this. You would now be responsible for keeping Piklist up to date in your theme and pushing out updates. If you miss one, and the user installs another Piklist plugin that needs these features, the user suffers, and so does the reputation of Piklist.
We believe it is in the best interest of the users to have Piklist installed as a separate plugin.
It’s super easy for the user to install Piklist, by having you include the Piklist Checker in your theme.
-
-
AuthorPosts
- You must be logged in to reply to this topic.