-
rbrinks
ParticipantI’ve noticed that if I only have a few posts to display on the grid in a content-sidebar layout, they are each stretched across two columns. I have changed the code to force the grid to “threecol” and I get one-column-wide posts but they are still arranged vertically and the sidebar is two columns wide. Is there a minimum number of posts before the grid goes to side-by-side orientation?
I would like to force the posts (even if there are only two) into a side-by-side orientation on the grid, with a sidebar as the third column. How can I achieve this?
rbrinks
ParticipantIs there anything in the query that could be interfering with the way posts are displayed?
Daniel Tara
KeymasterAre you sure you’re not using the Content / Sidebar Half layout? Also, the sidebar accounts for one column so if you’re using the three columns layout with sidebar then the content will display on 2 columns.
rbrinks
ParticipantDaniel,
Yes, it’s the Content/Sidebar layout set to three columns. It worked just fine at the start, but I have edited the code of a copy of the index template file in order to implement a rather complex wp_query that results in a subset of posts. Whether I set that template as homepage or just a regular page, the column problem arises. I have all posts showing in a separate page, and they are displayed just fine. That’s why I raised the question of something in the wp_query interfering with the display. I tried manipulating several other template files as well and couldn’t solve the problem. As a follow-up to my original statement, now it doesn’t seem to matter how many posts are contained in the subset; they all show only vertically in the far left of three columns and the sidebar content shifts over to the middle column, with the right column blank.
rbrinks
ParticipantI left off trying out the portfolio template page, which illustrates the problem in the same way as the index template. Here the homepage, “Local Missions,” shows the incorrectly displaying customized subset of posts while the “All Missions” shows all posts and displays them correctly.
Daniel Tara
KeymasterYou have obviously hacked into the theme’s code. Try adding the class
twothirdcol
instead ofthreecol
for the content area.rbrinks
ParticipantDone; please take a look. The posts are still not side-by-side but rather each post stretched across two columns wide.
Daniel Tara
KeymasterI’m not sure what you mean by “not side-by-side but rather each post stretched across two columns wide”. Also, I suggest using the Top sidebar instead of the Right sidebar to make widgets span full width.
rbrinks
ParticipantI mean that with twothirdcol, I still only have two columns: one column where the posts take up two-thirds of the space and a sidebar that’s one-third. As it is, vertical photos show up way too big. My goal is to have three equal columns, with the left-most two each filled with posts and the right one a sidebar. The problem was with threecol, somehow the layout changed (as you saw) and is not giving me three equal columns but just one column of posts, one sidebar column and one empty column.
Daniel Tara
KeymasterYou should simply move your widgets from the “Right” sidebar to the “Top” sidebar. The sidebar names is a bit confusing. “Right” sidebar refers to a sidebar talking half of the column width and floated to the right and “Top” means a full width sidebar on above the “Right” one.
You must be logged in to reply to this topic.