Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That code will gve you 3 widget areas.

Use the 'width' option described on the new widget page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
looks goot, it will give the second widget a width of 200px and the first will get the rest.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 05:36 PM.


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