Hello.
So for the thumbnail to be a link to the post. This is an option already.
Screenshot
1. Check “Show Thumbnail”
2. Choose Link to Post which wraps the image in a link.
3. Choose to NOT display the title of the post.
You can also hide the excerpt, and anything else… so that all that is showing is the image. If you want the title to go after the image… use
use the hook ‘dd-carousel-after-content’
(if you want the title on top of the image use ‘dd-carousel-before-content’ instead.
You can style and specify any css classes for the link or title.
add_action( 'dd-carousel-after-content' , 'my_custom_carousel_header' , 10, 1);
function my_custom_carousel_header($id){
if ($id == 2267) { // your carousel ID - numeric
global $post;
echo '<a href="'.get_permalink($post->ID).'">'.get_the_title($post->ID).'</a>';
}
}
-
This reply was modified 4 years, 2 months ago by thehowarde.
-
This reply was modified 4 years, 2 months ago by thehowarde. Reason: fix formatting