How to use fancy_parent function

If you need to display a link to the gallery in a form of an image, you can do it with fancy_parent function. Link can be placed anywhere!


<?php fancy_parent('folder_path/', '/internal/page/link'); ?>


The folder with images is under /public/images/galleries/ and points to the “How to display a single gallery” article under /projects/fancy-image-gallery

<?php fancy_parent('galleries/big-bang-theory/', '/projects/fancy-image-gallery/how-to-display-a-single-gallery'); ?>