[resolved] Change size of featured image (8 posts)

  1. nhatuan
    Posted 1 year ago #

    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.

  2. Silkalns
    Theme Author

    Posted 1 year ago #

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

  3. nhatuan
    Posted 1 year ago #

    Hi Silkalns,

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

    Thank you.

  4. Silkalns
    Theme Author

    Posted 1 year ago #

    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.

  5. WP Web Designer
    Posted 1 year ago #

    My issue is resolved as well.

  6. nhatuan
    Posted 1 year ago #

    Thank Author. It worked :)

  7. nettips
    Posted 1 year ago #

    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: http://codex.wordpress.org/Template_Hierarchy
    * @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(); ?>

  8. Silkalns
    Theme Author

    Posted 1 year ago #


    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.