Support » Theme: Dazzling » Change size of featured image

  • Resolved nhatuan


    Dear author,

    Thank for your great theme.

    I ‘d like to change the size of featured image in content page (home page), it is too big. I do not know where to change it. Please help me.

    Thank you very much.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Silkalns


    If you mean slider images, then these are not resized and they will show in full size based on image you have uploaded.

    Hi Silkalns,

    I mean the featured image of a post not slider images.

    Thank you.

    Theme Author Silkalns


    Open index.php file and replace code between 44-50 with this:

    <?php if ( has_post_thumbnail()) : ?>
    		<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
    		 	<?php the_post_thumbnail( 'dazzling-featured', array( 'class' => 'thumbnail col-sm-4' )); ?>
    		<div class="col-sm-8">
    			<?php the_excerpt(); ?>

    Or tweak col-sm-8 and col-sm-4 to get the results you were looking for.

    WP Web Designer


    My issue is resolved as well.

    Thank Author. It worked 🙂

    I have the same issue (smaller thumbs for the featured images) but if I change the lines 44-50 with the above mentioned code my site turns absolutely white.

    At the moment this is my index.php:

    * The main template file.
    * This is the most generic template file in a WordPress theme
    * and one of the two required files for a theme (the other being style.css).
    * It is used to display a page when nothing more specific matches a query.
    * E.g., it puts together the home page when no home.php file exists.
    * Learn more:
    * @package dazzling

    get_header(); ?>
    <div class=”top-section”>

    <?php dazzling_featured_slider(); ?>

    <?php dazzling_call_for_action(); ?>

    <div id=”content” class=”site-content container”>
    <div id=”primary” class=”content-area col-sm-12 col-md-8 <?php echo of_get_option( ‘site_layout’, ‘no entry’ ); ?>”>
    <main id=”main” class=”site-main” role=”main”>

    <?php if ( have_posts() ) : ?>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    /* Include the Post-Format-specific template for the content.
    * If you want to override this in a child theme, then include a file
    * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    get_template_part( ‘content’, get_post_format() );

    <?php endwhile; ?>

    <?php dazzling_paging_nav(); ?>

    <?php else : ?>

    <?php get_template_part( ‘content’, ‘none’ ); ?>

    <?php endif; ?>

    </main><!– #main –>
    </div><!– #primary –>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Theme Author Silkalns



    This thread is marked as resolved, please create a new one thread and leave a reference to this topic and I will help you from there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change size of featured image’ is closed to new replies.