Wednesday, 18 April 2018

Easy Fancy box Popup Wordpress

Please follow the steps for fancy box popup:

    1 – download this plugin : https://wordpress.org/plugins/easy-fancybox/

    2 – active this fancy box plugin.

    3 – $src = links of image full path and add class of fancy box.

        <a class=”fancybox” href=”&lt;?php echo $src; ?&gt;”>

    4 – after src tag with image details

        <img class=”my-custom-class” src=”image url” alt=”alt image text” width=”image width” height=”image height” />

    5 – after close the a href tag. – </a>

    Example :

        <a class=”fancybox” href=”image url for open fancybox image”>

            <img class=”my-custom-class” src=”display image url” alt=”alt text” width=”300px” height=”300px” />

        </a>

-------------------------------------------------
Let me know your thoughts and questions in the comments.
Email: vyasankit2008@gmail.com  

No comments:

Post a Comment