yes that worked too, how can i configure the zoom level?
The replaced code can be tweaked to add a conditional so that the featured image is only replaced with the zoom image on posts, and also a ‘zoomin’ shortcode parameter & value can be included to control the zoom level.
<?php
if ( has_post_thumbnail() ) {
if ( ( function_exists('cc_zoom_featured_image') ) && ( is_singular( 'post' ) ) ) {
echo do_shortcode( '[zoom zoomin=2]' );
} else {
echo ! is_single() ? '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' : '';
the_post_thumbnail( 'tyche-blog-post-image' );
echo ! is_single() ? '</a>' : '';
}
}
?>
The default zoomin value is 6 if the parameter is not included
nice, thank you very much for your support and the great plugin
-
This reply was modified 8 years, 7 months ago by
csandreas1.
Maybe a stupid question,
I’m using Hueman theme , where have I to add the code there?
I add it to single.phl , add a new post with a picture; but nothing happens ….
-
This reply was modified 8 years, 6 months ago by
mmades.
These forums work better when each topic addresses a single subject, and your question is not the same as the one already answered here.
Did you add an image to the post or did you set a featured image for the post? If you did not set a featured image, you will need to add one as the plugin is designed to use that. If this answer does not solve your problem, please open a new topic and give as much detail about the specific issue as possible.