Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Theme Development Custom Post Type Templates in WordPress Coding Your Own Custom Post Type Templates

Adam Slaker
Adam Slaker
9,995 Points

Get Pictures to stack in Wordpress Theme Development

I noticed that in the Wordpress theme development course Zac has it set up so that the images stack when you add them to the custom portfolio page. When I add mine they are being added side by side. Is there a setting that I may have missed, or possibly some code. If anyone has any indication, I can provide some of my code for further help. Thanks everyone!

Hi Adam,

Just wanted to check I'm understanding correctly :)

Do you mean when he adds the images in to the wysiwyg editor?

Thanks

-Rich

Adam Slaker
Adam Slaker
9,995 Points

Yeah. In the video when it displays on the portfolio single page, it is stacked vertically with spacing in between each picture. When I put in into the wysiwyg it loads them in side by side, with no space in between. It also displays it on the page in this fashion. I wasn't sure if I missed some CSS that I should have linked somewhere.

1 Answer

Hi Adam,

Before we look at the styles it may just be a case of adding a line break between the images within the wysiwyg editor.

Can you try that first please and if that doesn't work can you post the styles you have associated with that section of the page please?

-Rich

Adam Slaker
Adam Slaker
9,995 Points

I tried that out and it seems to work fine. I think I was confused about the video. I thought there was something in the template that did it automatically. Thanks for your help Rich!

No problem! :)