css - Add link to an image php -


my wordpress theme has presentation page template full screen scrolling images. i'd add separate link each image. how that?

            <?php } else if ($presentation_type == 'image'){ ?>                     <div class="section" data-id="<?php echo $presentation_name; ?>" style="background-image: url(<?php echo $presentation_image; ?>);" data-nav-color="<?php echo $presentation_style; ?>"> 

thanks in advance!

provided have no dynamic code in <div /> html5 allows wrap , <a> tag.

<a href="<?php echo $presentation_image; ?>">     <div class="section" data-id="<?php echo $presentation_name; ?>" style="background-image: url(<?php echo $presentation_image; ?>);" data-nav-color="<?php echo $presentation_style; ?>">      ...      </div> </a> 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -