make nivo-caption – clickable

  • Author
    Posts
  • #26310
    Bilis

    Hello, I have a question.
    i want to make the black square with the text title part of the LINK to the post..
    (.nivo-caption)
    want to make the black square wrapped with the same <a/> of the picture that linking to the post.

    thanks for the help!

    #26362
    Bilis

    i find a Solution

    /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*

    <div class="slider-wrapper theme-default <?php if($tempera_fpsliderarrows=="Visible on Hover"): ?>slider-navhover<?php endif; ?> slider-<?php echo  preg_replace("/[^a-z0-9]/i","",strtolower($tempera_fpslidernav)); ?>">
         <div class="ribbon"></div>
         <div id="slider" class="nivoSlider">
    	<?php foreach($slides as $id=>$slide):
                if($slide['image']): ?>
                <a href='<?php echo ($slide['link']?$slide['link']:'#'); ?>'>
                     <img src='<?php echo $slide['image']; ?>' data-thumb='<?php echo $slide['image']; ?>' alt="" <?php if ($slide['title'] || $slide['text']): ?>title="#caption<?php echo $id;?>" <?php endif; ?> />
                </a><?php endif; ?>
         <?php endforeach; ?>
         </div>
         <?php foreach($slides as $id=>$slide): ?>
                <div id="caption<?php echo $id;?>" class="nivo-html-caption">
                    <?php echo (strlen($slide['title'])>0? '<a href=' . ($slide['link']?$slide['link']:'#') . '><h2>'.$slide['title'].'</h2></a>':'');
    				      echo (strlen($slide['text'])>0?'<a href=' . ($slide['link']?$slide['link']:'#') . '><div class="slide-text">'.$slide['text'].'</div></a>':''); ?>
                </div>
    	<?php endforeach; ?>
         </div>
    <?php endif; ?> 
    <div class="slider-shadow"></div>
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘make nivo-caption – clickable’ is closed to new replies.