Jump to content
Sign in to follow this  
cdhphoenix

Different Columns of Soap Boxes for different pages

Recommended Posts

cdhphoenix

Hello, I love the soapboxes, and wish to use them on two different pages. However I would like to know if it possible to have a template of 2 pages containing soapboxes, but different layouts for both. One page: has three columns of soap boxes (which i already did by tweaking the sections.soapboxes.php) I have one page set up (under construction of course) here: http://criterioninedit.com/?page_id=52, which has the three columns. I would like to see if i can have another soapbox page: with two columns of soap boxes (the default layout originally set up in the theme). How would I go about setting up another section.soapbox.php for this new page. Is this possible? Any suggestions, I am willing to do some coding and hard work to achieve this, so bring on the challenge if it be the case. Thank you for your help and hard work in helping me. -Carolyn

Share this post


Link to post
Share on other sites
bryan-hadaway

Anything is possible. It might have been possible to accomplish what you originally wanted with CSS instead of altering the PHP, maybe not. Now, that you're down the path of PHP customization I'll see if you can get some developer insight. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

I do agree with Bryan, it's easier to use the page-id in conjunction with the soapbox css selectors to achieve different layouts. However, if you are actually changing more than just the width then sure a separate PHP section would be good. Do keep in mind that the normal box sets can change column size on each page via page meta options. Additionally you can put icons on top as well so it looks similar to the soapboxes which are less configurable. Catch my drift?

Share this post


Link to post
Share on other sites
cdhphoenix

Hey guys, I can easily undo my php manipluations if you feel that css is easier. So you're saying that I can use my page id, and change the custom css of the soapbox selectors to adjust the columns from 2-3 depending on the page? Any suggestions on how I would type the custom css for each page id? I know that one page is calling on the

.dcol_container_3
and i want the other page, which I havent built yet, to call upon the
.dcol_container_2

What do you suggest for using custom css to assign the code to certain page ids?

Share this post


Link to post
Share on other sites
kastelic

Each page has an identifying class in its body tag.

Share this post


Link to post
Share on other sites
cdhphoenix

Thanks for everyones responses. I returned my soapbox php to its default and currently am attempting to change the columns using css. This is what I am entering into the custom css to acheive the three columms (with the widths adjusted) but it does not appear to be work:

#soapbox .content .page-52 {
	.dcol_container_3{width: 980px; float: right;}
	.dcol_3{width: 306px; margin-left: 20px; border-bottom: 1px solid #e9e9e9; }
	}

any ideas?

Share this post


Link to post
Share on other sites
catrina

There's an additional

}

at the end of the custom code you pasted. Perhaps you should delete that and then check to see if it works.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
cdhphoenix

Hi, I tried deleting the additional bracket to no avail. I want one page with soapboxes with three columns and the other as its default with two columns. Page id 52 is the page where I am trying to tweak the css to achieve the three column appearance. Not sure what to do now in term of code options.

Share this post


Link to post
Share on other sites
bryan-hadaway

It should be: `.page-id-52` Thanks, Bryan

Share this post


Link to post
Share on other sites
cdhphoenix

thanks for the input Bryan, I'm sad to report that it still has not worked. i think the function may be completely off as well. not sure whether to call on the #content or #soapbox or dynamic grid, i've tried different versions to no avail. thanks for trying guys i appreciate it. if anyone thinks of anything let me know.

Share this post


Link to post
Share on other sites
Kate

Hey Carolyn - I didn't try the CSS, but in addition to the extra end bracket, you had an extra one to begin with. This code here:

.dcol_container_3{width: 980px; float: right;}
	.dcol_3{width: 306px; margin-left: 20px; border-bottom: 1px solid #e9e9e9; }
... was nested inside of this:
#soapbox .content .page-52 {
	}

Also, you are correct that the CSS isn't quite right. You would want to use the page ID first (in the form of a class). This is because this is the highest div (hierarchically) that you're trying to access. Make sense?

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  

×