WordPress.org

Support

Support » How-To and Troubleshooting » Featured Slider – can't figure out how to link images to pages

Featured Slider – can't figure out how to link images to pages

  • I installed this theme here
    I can get a link to show up on the main image, that is associated with that image, but it then associates that image with all the rest of the images… Any idea how to fix it?

    Here is a link to the current code: Click Here

    This is the code I was trying to replace the current image with:

    <?php if($custom_link !== "") {
    					 echo '<a href="'.$custom_link.'">';
    						 $attr = array('class' => "", 'title' => $custom_caption);
    						the_post_thumbnail('image_xxl',$attr);
    					 echo '</a>';
    					} else { ?>
                        <?php
    						$attr = array('class' => "", 'title' => $custom_caption);
    						the_post_thumbnail('image_xxl',$attr);
    					?>
    					<?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry, here is the Javascript that goes along with the slider:
    PasteBin Link

    Try Roster Slider or Listic Slider Plugin from SliderVilla.com where you get option to add whatever link you want to the slide content like Title, Image etc. You can also provide link to advertisement or affiliate in the slider.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured Slider – can't figure out how to link images to pages’ is closed to new replies.
Skip to toolbar