To do so you just need to:
- import all the widget files into your theme directory
- Make sure any hardcoded paths or plugin_urls are changed to get_template_directory_uri() and the correct path.
- Add a require_once to your functions.php with the path of your widget's php file inside.
Notes:
- When integrating make sure to delete it from the plugins directory or else you'll get an error that says you can't redefine that class.
Now that I have shortcodes and integrating plugins/widgets into the theme I can now start working on making an advanced admin panel. This admin panel would include the following options:
- Change logo/if you want a logo at all.
- Change background image/color.
- Change link color.
- Change header text color.
- Custom css.
- Insert google analytic code.
- Enable/disable image slider.
- Enable/disable jQuery.
All of these need to be placed in a tab for their category of option in the options panel too. That's all for tomorrow night though cause tonight's energy drink is wearing off already.
No comments:
Post a Comment