WordPress.org

Ready to get started?Download WordPress

Forums

Featured Slider - can't figure out how to link images to pages (3 posts)

  1. kentopolis
    Member
    Posted 3 years ago #

    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 } ?>
  2. kentopolis
    Member
    Posted 3 years ago #

    Sorry, here is the Javascript that goes along with the slider:
    PasteBin Link

  3. Sanjeev Mishra
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags