Homepage Pane Image Sizes
-
My images are vastly different sizes on my homepage panes. Is there a way to set limits or resize them to all look the same? Also can I specify what text goes below each different pane?
I noticed on another thread that each pane was getting its own ID as of version 1.6. Where do I go find it to edit it?
Thanks,
Daniel
ModTry something like this:
.homepage_pane img {
max-height: 100px;
}This may cause some distortions with your images, or shrink their width a bit. You’ll have to play around with height and width settings to get something you can live with.
Yeah I’m still way off. Is there maybe a way to find the dimension of the space so I can make it fit in a program like Photoshop or GIMP?
Also, do you know how to customize the text below? Right now it just pulls the first text from the page but I’d like it to be different. Is that possible?
To get your images the same size, simply use the same dimensions each time you create a new image for the homepage panes. I’m not sure what the exact dimensions are, but if you stay consistent… they should all display the same.
To adjust the text under the image, when you are editing the post (just below the content editor), you should see a section called “Excerpt”. If you do not see this, click “Screen Options” in the upper right corner and select “Exceprt”.
Now, you can manually type your excerpt content, which will be different from the actual post content.
Hey Josh,
I don’t see the “Excerpt” under the screen option or below the editor. These are pages that are displaying rather than posts. Does that matter?
I will try the exact same image sizes and see what happens!
Daniel
Yes, pages will not have excerpt.
Yikes! Is there any way to change that or am I hosed?
Daniel
Just add this line to your child theme’s functions.php. It enables excerpt for pages.
add_post_type_support('page', 'excerpt');
Quote:add_post_type_support(‘page’, ‘excerpt’);Yep. Sorry, I missed that part.
Does it matter where I put it in the functions.php?
Daniel
Viewing 10 posts - 1 through 10 (of 12 total)
- 1
- 2
- You must be logged in to reply to this topic.