Portfolio View page template, featured images of child pages
-
Gray Whale’s Portfolio View page template, to display multiple pages that have been set to have the portfolio-view page as their parent, is very nice.
I’ve noticed that the scaled-down featured images for each child page, when displayed in their own “portfolio-card” section on the parent page, are flush left regardless of their size or aspect ratio. I thought that these thumbnail image versions of the featured images for each portfolio child page might look better centered, in case the portfolio-card block they are contained within has a different pixel width (such as if the web-browser viewport is enlarged or made smaller).
I was able to achieve images being centered by adding just one line to Gray Whale’s CSS file (style.css), in the .portfolio-card .attachment-post-thumbnail block–
.portfolio-card .attachment-post-thumbnail { position: relative; display: block; border-bottom: -5px; line-height: .85; margin: 0 auto; /* this is the line I added to center the images */ }
Gray Whale is a great theme. The Portfolio View is a great addition, and I’m considering whether to use it for my blog posts instead of using WordPress’s own blogging functionality. Instead of writing “posts” that will automatically appear in proper summary format on the special page I create and specify in WordPress as the blog-posts page, I may just create blog posts as pages instead, and set them all as children of the one page I created to use the Gray Whale Portfolio-View template.
Anyway, I’m enjoying working with Gray Whale.
- The topic ‘Portfolio View page template, featured images of child pages’ is closed to new replies.