How to resize the Featured Image in Blog post
-
Hello I want to know that how can i reduce the featured image size on blogpost as well as make it left align …
Here i am attaching the code i do have on the template page .
I know this code needed to be changed
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content() ?>
<?php endwhile; // end of the loop. ?><?php get_header(); // Template Name: Page with Right Sidebar curly_get_slider(); ?> <article> <div class="container page-content"> <div class="row"> <div class="col-lg-7 col-md-8 col-sm-8"> <?php while ( have_posts() ) : the_post(); ?> <?php the_content() ?> <?php endwhile; // end of the loop. ?> <?php if( get_option(THEMEPREFIX.'_general_sharing_box_pages') == "false" ) : ?> <div class="social-box"> <p><?php echo get_option(THEMEPREFIX.'_general_sharing_box_text'); ?> <span class="pull-right"> <a rel="nofollow" href="https://www.facebook.com/sharer.php?u='<?php echo urlencode(get_permalink()); ?>&t=<?php echo urlencode(get_the_title()); ?>" data-toggle="tooltip" title="Facebook"><?php echo do_shortcode('[icon icon="facebook" boxed="yes"]') ?></a> <a rel="nofollow" href="https://twitthis.com/twit?url=<?php echo urlencode(get_permalink()); ?>" title="Twitter" class="tw tipsy-top"><?php echo do_shortcode('[icon icon="twitter" boxed="yes"]') ?></a> <a rel="nofollow" href="https://linkedin.com/shareArticle?mini=true&url=<?php echo urlencode(get_permalink()); ?>&title=<?php echo urlencode(get_the_title()); ?>" title="Linkedin" class="li tipsy-top"><?php echo do_shortcode('[icon icon="linkedin" boxed="yes"]') ?></a> <a rel="nofollow" href="https://google.com/bookmarks/mark?op=edit&bkmk=<?php echo urlencode(get_permalink()); ?>&title=<?php echo urlencode(get_the_title()); ?>" title="Google" class="gp tipsy-top"><?php echo do_shortcode('[icon icon="google-plus" boxed="yes"]') ?></a> <a rel="nofollow" href="mailto:?subject=<?php urlencode(get_the_title()); ?>&body=<?php echo urlencode(get_permalink()); ?>" title="Email" class="em tipsy-top"><?php echo do_shortcode('[icon icon="envelope" boxed="yes"]') ?></a> </span> </p> </div> <?php endif; ?> <?php if (comments_open()) { $fb_comments = get_option(THEMEPREFIX.'_fb_comments'); if ($fb_comments != "true" ) : comments_template(); else : ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=233653370014075"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <h3><?php _e('Comments' , 'CURLYTHEME') ?></h3> <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="470" data-num-posts="10"></div> <?php endif; } ?> </div> <div class="col-lg-4 col-md-4 col-sm-4 col-lg-offset-1"><?php if(function_exists('generated_dynamic_sidebar')) generated_dynamic_sidebar(); else dynamic_sidebar('sidebar_page'); ?></div> </div> </div> </article> <?php get_footer(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘How to resize the Featured Image in Blog post’ is closed to new replies.