Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] How to select page width for a custom page template? (http://forum.bytesforall.com/showthread.php?t=17057)

raymasa Mar 18, 2012 11:24 PM

[SOLVED] How to select page width for a custom page template?
 
Hello

I have a custom page template for just one page (the rest of the pages use the default page template). The only thing different for this page is the width size. I was able to create a page template, by copying index.php and calling is page_custom.php, that worked.

But I can't figure out how to make the width of the page different for this custom page, if I change the setting in ATO (Layout MIN and MAX width), it will effect the default template as well.

Thanks for your help

Ray

juggledad Mar 19, 2012 04:55 AM

You don't need a custom template for that, you can do it with a css insert. add teh following to the CSS Inserts
HTML Code:

body.page-id-nn #wrapper {width: 70%;}
change the 70 to the percent width you want.

if you have a fixed width page use
HTML Code:

body.page-id-nn #wrapper {width: 200px;}
changing the '200' to the width you want

raymasa Mar 19, 2012 08:23 AM

Thanks juggledad, that worked.

Ray


All times are GMT -6. The time now is 06:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.