Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

How do I set a specific width for widgets in the same widget area


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jul 30, 2011, 08:08 AM
sober's Avatar
sober
 
121 posts · Oct 2010
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
  #2  
Old Jul 30, 2011, 09:32 AM
Big Geek Daddy's Avatar
Big Geek Daddy
 
42 posts · Nov 2009
United States
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>'); ?>
  #3  
Old Jul 30, 2011, 12:03 PM
sober's Avatar
sober
 
121 posts · Oct 2010
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
  #4  
Old Jul 30, 2011, 12:46 PM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
That code will gve you 3 widget areas.

Use the 'width' option described on the new widget page
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #5  
Old Jul 30, 2011, 02:00 PM
sober's Avatar
sober
 
121 posts · Oct 2010
Juggledad, Would you be kind enough to give the code... please ...
  #6  
Old Jul 30, 2011, 02:02 PM
sober's Avatar
sober
 
121 posts · Oct 2010
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>'); ?>
  #7  
Old Jul 30, 2011, 05:28 PM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
looks goot, it will give the second widget a width of 200px and the first will get the rest.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Correct CSS to set maximum width of center area, yet retain fluid header ima Wimbledon Center area post/pages 2 Dec 22, 2010 08:36 AM
How to add widgets to specific page IDs through the Atahualpa Theme Options area? cab262 Sidebars & Widgets 2 Dec 9, 2009 07:52 AM
Set left sidebar widgets same distance from center area as right sidebar widgets daisy24 Sidebars & Widgets 2 Feb 19, 2009 05:11 AM


All times are GMT -6. The time now is 03:54 PM.


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