Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   How do I set a specific width for widgets in the same widget area (http://forum.bytesforall.com/showthread.php?t=14974)

sober Jul 30, 2011 08:08 AM

How do I set a specific width for widgets in the same widget area
 
If I have a widet area that has two widgets side by side. By default both the widgets have equal widget and my question is for example, if the content area is 600px, how can I assign 400px to the first widget and 200px to the second widget. An example code would be greatly appreciated - Thank You

Big Geek Daddy Jul 30, 2011 09:32 AM

Go to Add New Widget Areas section under sidebars and Widgets in Atahualpa Theme Options.

This is what I'm using in my Footer:

<?php bfa_widget_area('name=Footer Area&cells=3&align=9&align_2=9&align_3=9&width_1=3 00&width_2=510&width_3=250&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?>

sober Jul 30, 2011 12:03 PM

Thanks for the code, let me try it and i will reply how that goes. BTW, my site is www.intervenors.ca. You can see that all the widgets are equal width

juggledad Jul 30, 2011 12:46 PM

That code will gve you 3 widget areas.

Use the 'width' option described on the new widget page

sober Jul 30, 2011 02:00 PM

Juggledad, Would you be kind enough to give the code... please ... :)

sober Jul 30, 2011 02:02 PM

Am I right with the following code
Code:

<?php bfa_widget_area('name=My widget area&cells=2&align=9&align_2=9&width_2=200&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?>

juggledad Jul 30, 2011 05:28 PM

looks goot, it will give the second widget a width of 200px and the first will get the rest.


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

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