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)
-   -   [SOLVED] Horizontal widgets (http://forum.bytesforall.com/showthread.php?t=9843)

minaa Sep 23, 2010 04:00 PM

[SOLVED] Horizontal widgets
 
I've done a lot of looking around and I can't find a direct answer to my question on your forums.

I created a new widget area and placed it above my posts on my main page. I used the div option, because I didn't want to fuss with more tables than necessary.

I have a couple things I'd like to do:

One: I'd like this widget area to be visible on the main page only. I may change this in the future, but I'd like to know if there's a tag I could use to make it possible.
Two (and more importantly): I'd like to align these four widgets horizontally. I'll worry about styling later, right now I simply want the page to function.

My blog in progress is: http://www.sweetlycaustic.com/

Thanks for your help!

lmilesw Sep 23, 2010 06:17 PM

To have a one celled widget area on the front page only use
HTML Code:

<?php if( is_home() ) bfa_widget_area('name=My new widget area'); ?>
To align the widgets horizontally I would use a four celled widget area with the above. The code below would give you 4 widget areas aligned side by side with the contents aligned at the top center only on the home page.
HTML Code:

<?php if( is_home() ) bfa_widget_area('name=Top widget area&cells=4&align=2&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?>

minaa Sep 23, 2010 06:49 PM

I figured it out. I simply placed it into a fixed div. Thanks again!


All times are GMT -6. The time now is 02:04 PM.

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