Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

[SOLVED] Widget Alignment

Old Nov 15, 2012, 02:32 AM
291 posts · May 2009
Texas and New Mexico
Send a message via Skype™ to sleenie

I've been trying to set up a 3 celled widgets and am having problems getting the 2nd widget to align at the top. Below is the code I've used. I know nothing about php so I'm not sure what is missing.

PHP Code:
<?php bfa_widget_area('name=Header widget&cells=3&align=2&width_1=675&width_3=240&align_2=1before_widget=<div id="%1$s" class="Header-widget %2$s">&after_widget=</div>');?>
I've tried using CSS but I cannot get it to change. I've added this to the insets also.

   #header_widget_2 div.widget {
    color: #fff;
    background: transparent;
    border: 0 10px 10px 10px;
I'm sure it likely has something to do with the php code.

Site is under maintenance but I can open it up temporarily.
"Plan your work for today and everyday...then work your plan"
Old Nov 15, 2012, 04:32 AM
juggledad's Avatar
23,742 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you have align_2=1
take a look at the align sub option
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Nov 15, 2012, 07:31 AM
lmilesw's Avatar
10,174 posts · Jul 2009
Central New York State USA
The alignment property does need to be correct but you are also missing an ampersand (preceding before_widget). Also your code indicates a width of 675px for cell 1 and a width of 240px for cell 3. Make sure those are correct as well.
HTML Code:
<?php bfa_widget_area('name=Header widget&cells=3&align=2&width_1=675&width_3=240&before_widget=<div id="%1$s" class="Header-widget %2$s">&after_widget=</div>');?>
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Last edited by lmilesw; Nov 15, 2012 at 07:33 AM.
Old Nov 15, 2012, 09:06 AM
291 posts · May 2009
Texas and New Mexico
Send a message via Skype™ to sleenie
Juggledad, that did it1 I can't believe I stared at for as long as I did and missed it.

And Larry i also added in the ampersand. And yes, my widths were correct. Or at least it gives me what I needed.

Thanks so much.
"Plan your work for today and everyday...then work your plan"


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vertical Alignment of text in Widget Title with Image Inserted swimflyfast2 Sidebars & Widgets 1 Dec 23, 2011 01:34 PM
Alignment Problem Within Widget Firefox Only jdadour Sidebars & Widgets 2 Nov 2, 2011 09:40 AM
Header Menu / Widget area alignment Craig Atkinson Header configuration & styling 0 Aug 26, 2010 06:42 AM
[SOLVED] Custom Widget alignment doesn't work conon Sidebars & Widgets 2 May 10, 2010 01:20 PM

All times are GMT -6. The time now is 05:57 PM.

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