beekay_ Posted April 25, 2010 Share Posted April 25, 2010 Hi, I needed some help with changing the size of the image on the following page: [link removed] I'm trying to extend the width so it matches the nav bar on top and getting rid of the text on the right side. But am failing so far. Any ideas? Link to comment Share on other sites More sharing options...
0 Cupcakes Posted April 25, 2010 Share Posted April 25, 2010 I haven't used the Gallery child-theme from Thematic yet so I'm not sure what exactly theme file you'll need to edit.. But I'm going to take a wild guess and say single.php is the file where you'll need to remove the following: <?php the_content();?> That function is what displays the content to the right of the image. The image that you uploaded on this theme, is only 500x375px. There is no way to stretch an image when it has such small resolutions to it already. If you want the image to extend the width, then upload an image that is at least 940px in width. Again, you might have to look around the theme's page that displays the image just in case it's not using a PHP resizing script (you'll see timthumb.php if it does.) You'll also need to do the following to get the image to fit within the theme: First, you'll need to edit the css for .entry-artwork to change it to 940px and to remove any styling to the img {} that will remove the black border around it, otherwise if you to retain the border, you'll need to adjust the width of entry-artwork to 920px as the border adds 20px in width. Link to comment Share on other sites More sharing options...
0 beekay_ Posted April 25, 2010 Author Share Posted April 25, 2010 Gah, no luck so far. I haven't played around with Thematic either. But I tried to remove <?php the_content(); from page.php. Didn't work. Single.php doesn't have that. What it did have was <?php the_post(); , but that took away the whole post including the image. Any ideas? Thanks for your quick help! Still trying. Going to try the thing with the image like you said. Link to comment Share on other sites More sharing options...
0 Cupcakes Posted April 25, 2010 Share Posted April 25, 2010 Ah, that was my fault. Are you entering the image into the post's textarea or is that going into a custom field? If it's the former, then you'll have to read up a bit on the theme and setup a custom field for the image, and in the theme replace the_post with get_post_meta, although in order to grab the proper custom field you'll need to look up post meta/custom fields on Wordpress' codex to see how you format it exactly. This will grab JUST the image you tack into it. BTW, page.php != single.php. Page.php is for individual pages, single.php is for single posts. Single.php is the only file you're going to edit for the permalink you have (yyyy/mm/dd/post-name). Link to comment Share on other sites More sharing options...
0 beekay_ Posted April 25, 2010 Author Share Posted April 25, 2010 Entering the image into a custom field. Yeah, I was just looking into adding the custom meta fields. Thanks! Link to comment Share on other sites More sharing options...
0 beekay_ Posted April 25, 2010 Author Share Posted April 25, 2010 Edit: Nevermind. Figured it out. Link to comment Share on other sites More sharing options...
0 beekay_ Posted April 25, 2010 Author Share Posted April 25, 2010 What would be the best way to center all types of images? Like right now I've centered horizontal images using a cheap trick. But if I wanna add vertical photos, it's gonna be messed. Any thoughts on that Cupcakes? Thanks so much for your help! Link to comment Share on other sites More sharing options...
0 Cupcakes Posted April 25, 2010 Share Posted April 25, 2010 img { margin: 0 auto; display: block; } Link to comment Share on other sites More sharing options...
0 beekay_ Posted April 25, 2010 Author Share Posted April 25, 2010 Thank you so much once again! Link to comment Share on other sites More sharing options...
Question
beekay_
Hi,
I needed some help with changing the size of the image on the following page:
[link removed]
I'm trying to extend the width so it matches the nav bar on top and getting rid of the text on the right side. But am failing so far.
Any ideas?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts