Hello, I'm having issues with my slider because it showing images as clickable links and i want to disable it. I have tried a couple of thing but nothing works, can someone guide me in the right direction. Thanks <li class="slide"> <?php if (has_post_thumbnail()) { $img = get_the_post_thumbnail($page->ID, 'slide', array( 'title' => trim(strip_tags( $attachment->post_title )) ) ); } else { $img = '<img src="'.CHILD_URL.'/images/noimage940x350.png" alt="" title="'.$post_title.'" />'; } echo '<a href="'.get_permalink().'" title="'.the_title_attribute('echo=0').'">'.$img.'</a>'; $excerpt = get_the_excerpt(); if (strlen($excerpt) > 120) { $excerpt = substr($excerpt,0,strpos($excerpt,' ',120)); } $excerpt = $excerpt.' ...'; if (!empty($options['display']['captions'])) { echo '<div class="flex-caption"><div class="container"><h4>'. get_the_title() . '</h4><p>' . $excerpt .'</p></div></div>'; } ?> </l PHP:
line 8 echo '<a href="'.get_permalink().'" title="'.the_title_attribute('echo=0').'">'.$img.'</a>'; Code (markup): Change to: echo $img; Code (markup):
The reason why it's so simple is because a link is <a href="mylink.php"></a> Anything you wrap inside the anchor link is clickable.