• Resolved ionian

    (@ionian)


    Hi,

    Is there a way in which I can wrap title and thumbnail in a link to the post instead of using the “Read More” button?

    Thanks for any help you can give.

Viewing 1 replies (of 1 total)
  • Plugin Author thehowarde

    (@thehowarde)

    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
Viewing 1 replies (of 1 total)
  • The topic ‘Wrap title and thumbnail in link’ is closed to new replies.