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
Post a Comment