Jump to content
Sign in to follow this  
flightfolio

Custom layout for different category

Recommended Posts

flightfolio    0
flightfolio

Just purchased the EcoPro theme and mucking around with it... My site (http://www.flightfolio.com) has two different categories, one for normal blog posts and another for posts which only contain an image. I need the category which displays individual post as images to follow the full-width template design instead of having the right sidebar. May I know how to modify the second category so that all posts under there will use the full width design? Thanks! much!

Share this post


Link to post
Share on other sites
Rob    547
Rob
You might be better off using one of the hundreds of outstanding image gallery plugins. That would ensure your images show full width. I noticed that the one image you have is 'clipped' on the right side due to the canvas area in EcoPro. Your image is not resized to fit. A good photo plugin would resize for you. Then, rather than focusing on a category for images, you create a page, add the shortcode supplied by the plugin author and add the photos to the plugin.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
flightfolio    0
flightfolio
Hi rangelone, Thanks for your suggestion, however, it may not fit exactly what we are trying to do. The reason why I need to display individual posts in full width page format is because our contributors would create a new post under that category to describe each image they uploaded. Its only going to contain one image per post, and the rest is a rough description. I can't really find a suitable image gallery plugin which does that, which is why what i was thinking of doing is to just change the page design layout for posts under that specific category. Is there a quick way to do it, or can I do it faster by using PlatformPro?

Share this post


Link to post
Share on other sites
kastelic    6
kastelic
Here's a little trick you could try. Open up header.php and add this bit of code directly before the close of the head ( ) which should be around line 55. You will need to change the 'picture' part to the actual name or id (without quotes if you do the id) of the category you want to be full width. [code] [/code]

Share this post


Link to post
Share on other sites
flightfolio    0
flightfolio
@kastelic you're a genius! I just tried your suggestion and it works perfectly! Now I can display those images nicely on their own individual pages. The only thing now is I need to find some way to align the image to be center, right now its kinda veering to the left.... Cheers!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×