wp-parallax-content-slider
wp-parallax-content-slider copied to clipboard
Feature Requet: Make it a pluggable library for themes
Using it as plugin is still not smooth enough. Can we make it a pluggable library so that it can be included in a WordPress theme like CMB2, Redux etc.?
Hi, can you explain me a bit more what you mean by pluggable library? I'm not a theme developper so my knowledge about that is certainly limited but it sounds interesting. Thanks
I'm afraid I'm not that much aware about such expert things, but in CMB we simply put the following lines:
if( !class_exists("CMB2") ){ require_once( dirname(__FILE__)."/libs/cmb/init.php" ); }
and the library starts working in a theme. Then we need to filter to their specified hook with their specified array format to declare the meta boxes in desired page.
For this slider the steps can be:
- Download the repo to your theme and store it in a folder like
/libs/wp-parallax-content-slider
- Include it in your
functions.php
bla bla - Make your own html slider like
wp-parallax-static-slide-SOMENAME.php
in your theme folder (it will override any sample static slide)
You can make it more suitable as you are already advanced. :) I'd love to assist you if I know any sort of...