Pro Theme Design Forum » Mimbo Pro » Technical Help
Changing the size of teaser images in one category archive
|
Hey Ben, Darren! I have one category for which I need to change the size of the archive images. How do I do this? Am loving this theme more each time I hit a wall, ha ha! It's seriously awesome. Thanks for your stirling work. Dave |
|
|
Hey Dave - so to clarify, you want to alter the size of the images in one category only? This is in Mimbo Pro right? Unfortunately this isn't the sort of thing that can be modified with a child theme so the easiest way to do this is to add a conditional statement to work out what category you are in, and then set different image sizes.
|
|
Hey Ben. Ok, so I'm assuming I need to enter that statement somewhere around here in the category.php file? <?php So the category is 1008, and I want the image to be 100px (width) by 142px (height) I guess the correct qualifying statement therefore would be: if (in_category(1008)) {$image = get_post_image(100,142); It's just a question of where to put it! Thanks. |
|
STOP THE CLOCK! I got it. The only trouble with conditional tags is once you start using them, you can't stop! I know I'm going to break something soon and it'll be all my fault, ha ha! Have a great weekend, guys. Dave |
|
|
You're going to be making your own theme before you know it :) Glad you worked it out |
Reply
You must log in to post.
not a support question