Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Custom img size Featured Post Slider for the Autofocus Pro Theme WordPress


I'm currently working on my portfolio site.
I am using the autofocus+ pro theme. On my homepage I am using the anythingslider the theme uses. But in my lay-out the image size needs to be 966x414. Where the original size is 800x300.

My site:

I have changed all css and php code from 800x300 to 966x414.
But still it generates the following code:

<img width="800" height="300" title="tweedepost" alt="tweedepost" class="attachment-aflarge wp-post-image" src="" style="display: inline; margin-left: 83px; margin-top: 57px;">

Maybe someone can help me where he is making the 800x300.jpg thumbnail en sizing the image to 800x300. Because I have searched all theme files and I can't find it!

Thanks for the help!

Answers (2)


enodekciw answers:

I don't have that theme, so please, open up template file where that slider is and paste that code here.

enodekciw comments:

Btw, autofocus+ pro is paid theme. So, imo, questions about it should be prohibited here, unless askers are willing to buy that theme for experts ;)

Cause now, I ain't going to buy that theme for 15$ while this is 8$ question.

J Klep comments:

well I don't know if I can post it here because it's a paid theme.
But i'm willing to PM you the theme so you can go through it yourself to see if you can fix my problem! Because I paid for it and as long as you just use it for helping me out.. there is no problem.

Let me know if you'd like that and I will send it!

enodekciw comments:

ok, the code for listing images is <strong>thematic-functions.php @ lines 246-250</strong>:

<?php if ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="featured-post-image-container"><?php the_post_thumbnail('aflarge'); ?></a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="featured-post-image-container"><?php the_post_image('aflarge'); ?></a>
<?php } ?>

as you can see, it lists 'aflarge' sized thumbnails. Ok, let's check for those. Some other file holds whose sizes, but I'm not sure if I'm allowed to post that much here. As you've mentioned, it's paid theme. So, theoretically, you just define some new slider image size and use it here.

BTW, don't forget to use big images, cause small images won't be scaled to new size.

J Klep comments:

Thanks,, that solved the problem for me!


Oleg Butuzov answers:

try to look in functions.php

Oleg Butuzov comments:

and use regenerate thumbs plugin for regeneration..

J Klep comments:

already did that.. i've changed the following code in the functions.php:

// Add Post Thumbnails Support
// -
if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
set_post_thumbnail_size( 88, 88, true ); // Default thumbnail size
add_image_size( 'archive-thumbnail', 188, 188, true ); // Archives thumbnail size
add_image_size( 'single-post-thumbnail', 966, 414, true ); // Single Posts thumbnail size
add_image_size( 'front-page-thumbnail', 966, 414, true ); // Front Page thumbnail size

This should have done the trick I guess.. but still no result.

I also changed the image size settings in the functions.php.. but that also didn't do much for the homepage.