Before starting modifying or developing your own Piwigo themes it is strongly recommended to read the theme development documentation available on the Piwigo website and the Smarty manual. The documentation is not extensive, but enough to get you started with already existing themes as a base.