Zhenyu QI
asked 10 years ago

In DW Focus, it seems that images in the silder is un-clickable, you can only click on the title of each posts to view it.

Can you tell me how to make each slideshow image clickable, and link to post?

Thank you very much!

1 Answers
answered 10 years ago

To resolve this issue, you can open the dw-focus-slider.php file in the folder path “wp-content\themes\dw-focus\inc\widgets” / line 86

Replace the following code:

<?php the_post_thumbnail('slider-thumb');  ?>

With new code:

<?php echo '<a target="" href="'.get_permalink().'">'.get_the_post_thumbnail( get_the_ID(), 'slider-thumb' ).'</a>'; ?>
Powered by DW Question & Answer Pro