moving featured image below post title
-
Hi guys,
how can I move the post title above the featured image? I try to found out but I was not succesful. Hopefully I will find an answer here!
Thanks 😀
-
Thanks for using Ignite!
This is possible, but will require a child theme and editing some PHP/HTML. If you’re comfortable with this, I can point you in the right direction. Otherwise, I recommend codeable.io for hiring professional help.
Hi,
your theme is great! Maybe I will buy a premium in the future! Yeah, I’m using a Child Ignite now, so if you show me how to do it, it will be great 😀
Thanks in advance,
Edwan
Okay great, here’s how it can be done:
First, copy the
content.phpfile from Ignite into your Ignite child theme. Next, locate<?php ct_ignite_featured_image(); ?>on Line 8, and move it belowentry-headerat line 35.Then, still in the
content.phpfile, move the other occurrence of<?php ct_ignite_featured_image(); ?>from line 79 to line 108 belowexcerpt-header.Now your child theme’s version of the
content.phpwill be loaded instead and the featured image will be below the title.After that is done, you’ll just need to update the CSS if there is any undesirable spacing.
Hi Ben,
I was trying to do it, but it does not work. My website looks like this: http://www.vietflavour.cz
<?php $date_display = get_theme_mod( 'ct_ignite_post_meta_date_settings' ); $author_display = get_theme_mod( 'ct_ignite_post_meta_author_settings' ); if( is_single() ) { ?> <div <?php post_class(); ?>> <?php // as long as one isn't equal to 'hide', display entry-meta-top if( $date_display != 'hide' || $author_display != 'hide' ) : ?> <div class="entry-meta-top"> <?php // Don't display if hidden by Post Meta section if( $date_display != 'hide' ) { echo __( 'Published', 'ignite' ) . " " . date_i18n( get_option( 'date_format' ), strtotime( get_the_date( 'n/j/Y' ) ) ); } // output author name/link if not set to "Hide" in Post Meta section if( $author_display != 'hide' ) { // if the date is hidden, capitalize "By" if( $date_display == 'hide' ) { echo " " . ucfirst( _x( 'by', 'Published by whom?', 'ignite' ) ) . " "; the_author_posts_link(); } else { echo " " . _x( 'by', 'Published by whom?', 'ignite' ) . " "; the_author_posts_link(); } } ?> </div> <?php endif; ?> <div class='entry-header'> <?php ct_ignite_featured_image(); ?> <h1 class='entry-title'><?php the_title(); ?></h1> </div> <div class="entry-content"> <article> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<p class="singular-pagination">' . __('Pages:','ignite'), 'after' => '</p>', ) ); ?> </article> </div> <div class='entry-meta-bottom'> <?php if( get_theme_mod('ct_ignite_post_meta_further_reading_settings') != 'hide' ) { get_template_part('content/further-reading'); } ?> <?php if(get_theme_mod('ct_ignite_author_meta_settings') != 'hide'){ ?> <div class="author-meta"> <?php ct_ignite_profile_image_output(); ?> <div class="name-container"> <h4> <?php if(get_the_author_meta('user_url')){ echo "<a href='" . get_the_author_meta('user_url') . "'>" . get_the_author() . "</a>"; } else { the_author(); } ?> </h4> </div> <p><?php echo get_the_author_meta('description'); ?></p> </div> <?php } ?> <?php if(get_theme_mod('ct_ignite_post_meta_categories_settings') != 'hide'){ ?> <div class="entry-categories"><?php get_template_part('content/category-links'); ?></div><?php } if(get_theme_mod('ct_ignite_post_meta_tags_settings') != 'hide'){ ?> <div class="entry-tags"><?php get_template_part('content/tag-links'); ?></div><?php } ?> </div> </div> <?php } else { ?> <div <?php post_class(); ?>> <?php // as long as one isn't equal to 'hide', display entry-meta-top if( $date_display != 'hide' || $author_display != 'hide' ) : ?> <div class="entry-meta-top"> <?php // Don't display if hidden by Post Meta section if( $date_display != 'hide' ) { echo __( 'Published', 'ignite' ) . " " . date_i18n( get_option( 'date_format' ), strtotime( get_the_date( 'n/j/Y' ) ) ); } // output author name/link if not set to "Hide" in Post Meta section if( $author_display != 'hide' ) { // if the date is hidden, capitalize "By" if( $date_display == 'hide' ) { echo " " . ucfirst( _x( 'by', 'Published by whom?', 'ignite' ) ) . " "; the_author_posts_link(); } else { echo " " . _x( 'by', 'Published by whom?', 'ignite' ) . " "; the_author_posts_link(); } } ?> </div> <?php endif; ?> <div class='excerpt-header'> <?php ct_ignite_featured_image(); ?> <h1 class='excerpt-title'> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h1> </div> <div class='excerpt-content'> <article> <?php ct_ignite_excerpt(); ?> </article> </div> <?php if(get_theme_mod('ct_ignite_post_meta_categories_settings') != 'hide'){ ?> <div class="entry-categories"><?php get_template_part('content/category-links'); ?></div><?php } if(get_theme_mod('ct_ignite_post_meta_tags_settings') != 'hide'){ ?> <div class="entry-tags"><?php get_template_part('content/tag-links'); ?></div><?php } if(get_theme_mod('ct_ignite_post_meta_comments_settings') == 'show'){ ?> <div class="excerpt-comments"><?php get_template_part('content/comment-count'); ?></div><?php } ?> </div> <?php }So where is the problem? Could you fix it please?
Thanks,
Edwan
Edwan,
Okay what you need to do is put
<?php ct_ignite_featured_image(); ?>after theentry-headerandexcerpt-header. Right now the featured image is inside of them. They should be after the closing</div>for both.Hello Good Day!
I have a Same Problem Check my Post Here i want to put post title above of feature images
any one can help me to solve this?
Advanced thank you!.
I’m sorry, but this forum is only for the Ignite WordPress theme. You will need to contact your theme’s developer for this customization.
Oh oh. sorry 🙂 i’m a newbie here.. 🙂 thank you..
The topic ‘moving featured image below post title’ is closed to new replies.
