- This topic has 17 replies, 2 voices, and was last updated 10 years, 4 months ago by Sakin.
-
AuthorPosts
-
July 27, 2014 at 11:47 am #41513KingBettsMember
Hi, my site is http://www.filthyculture.com/wordpress and the featured image is alot smaller then the other image in the example post that is up right now. Also there is a massive gap between the featured image and the text! Please help me out!
July 27, 2014 at 10:28 pm #41530SakinKeymaster@KingBetts: Sorry Catch Everest Free version doesn’t have option to select the size of the featured image in post/page. It will take the default image size of Width: 690px and Height: 462px.
You can either upgrade to Catch Everest Pro version, then you will get option to change the image size from “Content Featured Image Options” at your post/page Catch Everest meta or if you wan to do in the Catch Everest Free version then you need to build child theme and then copy
content.php
file in your child theme and edit size code
<?php the_post_thumbnail( 'featured' ); ?>
July 28, 2014 at 12:36 am #41533KingBettsMember@Saking – Perfect! That worked great! I was wondering if there was any way to move the post title about the featured image with keeping the layout and featured image? Thanks!
July 28, 2014 at 9:57 am #41540SakinKeymaster@KingBetts: Again for this you need to build child theme and then copy
content.php
from Catch Everest theme to your child theme. You can edit the child themecontent.php
code as below:
Just move the following code<?php if( has_post_thumbnail() ):?> <figure class="featured-image"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'catcheverest' ), the_title_attribute( 'echo=0' ) ) ); ?>"> <?php the_post_thumbnail( 'featured' ); ?> </a> </figure> <?php endif; ?>
Below the code
</header><!-- .entry-header -->
July 28, 2014 at 10:31 am #41542KingBettsMember@Sakin – That worked. One more question. If you look at the website and click the top post it has two pages (im just testing thigns) is there anyway to only have the featured image on the first page? Thanks again
July 28, 2014 at 11:36 am #41544KingBettsMember@Sakin – where is “next_post_link()” or how will i get the wp-pagenavi plugin to work because I need to replace next_posts_link() and previous_posts_link() with <?php wp_pagenavi(); ?>
July 28, 2014 at 12:52 pm #41546SakinKeymaster@KingBetts: The wp_pagenavi() has already been included in our theme. You just need to to activate WP-PageNavi and it will work automatically.
I just check in your site and found that you have used very large image at the featured image, this will make your site slow. Since your maximum content width is 1040px. But your image sizes are of 3600px width, which is massive big and bad for bandwidth and SEO. So, edit those image and make it maximum 1040px width. Don’t worry it will look same just the image size will be reduced.
July 29, 2014 at 12:41 am #41572KingBettsMember@Sakin – I have it activated but at the bottom it still says (Older Posts) instead of having page numbers
– Can you go into more detail on how to do this I don’t full understand
– On the very top post I made it have two pages (to test) & the featured image repeats on every page – is there anyway to prevent this – I only want it on the first page of the post
July 29, 2014 at 9:36 am #41588SakinKeymaster@KingBetts: I see that you have install WP PageNavi Style plugin and not the WP PageNavi. You need to install WP PageNavi plugin.
What have you customize it. Your site is showing Panda Junction 2014 // Photo Coverage only in the homepage.
About the featured image, it will just show the image which is attached to the post. See this http://catchthemes.com/blog/videos-blog/video-series-adding-featured-image-wordpress-postpage/
July 29, 2014 at 1:11 pm #41597KingBettsMember@Sakin I solved the image size problem!
– I changed all the other posts to “Test” In the Panda Junction 2014 // Photo Coverage post there is two pages in it, & if you go to the second you will see the featured image is repeated again at the top of the second page just like the first but for future posts when the site is open I only want the featured image to appear once on the first page.
– I uninstalled both plugins and reinstalled just WP-Pagenavi and activated it and it still says previous posts (the reason for all the test posts is to make it have more then one page on the homepage) Thanks again for all your help!
July 29, 2014 at 10:12 pm #41615SakinKeymaster@KingBetts: Now the pagination should work but I see that you have installed WP Super Catch Plugin installed. So, can you go to WP Super Cache plugin and clear the cache and check in.
I don’t see the repeat featured image.
July 30, 2014 at 7:38 am #41636KingBettsMemberJuly 30, 2014 at 7:39 am #41637KingBettsMemberJuly 30, 2014 at 10:16 am #41639SakinKeymaster@KingBetts: Oh you are talking about same post pagination. Yes, as it’s the same post it will show same featured image in your second, third and so on pages. This is WordPress default function and we don’t have control in it.
Oh Sorry the
wp_pagenavi()
function is not there in Catch Everest theme. We will be adding this in next version update. Either you can wait for the new release or you can just build child theme and edittemplate-tags.php
file and add the functions there incatcheverest_content_query_nav
andcatcheverest_content_nav
functions.July 30, 2014 at 10:35 am #41640KingBettsMember@Sakin – Can you please tell me what I need to replace in templates-tags.php – thank you!
July 30, 2014 at 10:43 am #41641SakinKeymaster@KingBetts: You can replace the following code:
<?php if ( get_next_posts_link() ) : ?> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'catcheverest' ) ); ?></div> <?php endif; ?> <?php if ( get_previous_posts_link() ) : ?> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'catcheverest' ) ); ?></div> <?php endif; ?>
with the the following:
<?php if ( function_exists('wp_pagenavi' ) ) : wp_pagenavi(); endif; ?>
But it’s better you wait for the update.
July 30, 2014 at 11:10 am #41642KingBettsMember@sakin Alright I will wait for the update – do you have any idea when that will be?
July 30, 2014 at 2:51 pm #41652SakinKeymaster@KingBetts: We have already submitted to WordPress.org so now it’s on their had to release the update. So, it can be fast by tomorrow or can take up to 7 days.
-
AuthorPosts
- The topic ‘Featured Image Problem!’ is closed to new replies.