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 »

[SOLVED] Widget Alignment


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 Nov 15, 2012, 02:32 AM
sleenie
 
291 posts · May 2009
Texas and New Mexico
Send a message via Skype™ to sleenie
Hi,

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.

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

Site is under maintenance but I can open it up temporarily.
__________________
Sleenie
"Plan your work for today and everyday...then work your plan"
  #2  
Old Nov 15, 2012, 04:32 AM
juggledad's Avatar
juggledad
 
22,263 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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
  #3  
Old Nov 15, 2012, 07:31 AM
lmilesw's Avatar
lmilesw
 
10,100 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.
  #4  
Old Nov 15, 2012, 09:06 AM
sleenie
 
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.
__________________
Sleenie
"Plan your work for today and everyday...then work your plan"

Bookmarks

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 01:40 AM.


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