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] How do you center a widget below the header? (http://forum.bytesforall.com/showthread.php?t=16352)

therebelchick Dec 28, 2011 06:53 AM

[SOLVED] How do you center a widget below the header?
 
I am setting up a new widget just below my header. My code looks like this:

%page-center %bar1 %image %bar2 %cats %bar1 <?php bfa_widget_area('name=Below Header Widget &align=1'); ?>

The widget is there but it's left aligned and I can't figure out how to center it...is this an option in Atahualpa theme?

http://therebelchick.com

lmilesw Dec 28, 2011 07:21 AM

Not sure if this is a problem but take out the space before the ampersand so your code looks like this.
HTML Code:

<?php bfa_widget_area('name=Below Header Widget&align=1'); ?>
Or you could just add the following to CSS Inserts
HTML Code:

#below_header_widget_ {
    text-align: center;
}

If you make the code change to the widget the id would be
HTML Code:

#below_header_widget
This is because the space is removed after the name.

therebelchick Dec 28, 2011 07:35 AM

That worked!! Thanks so much!


All times are GMT -6. The time now is 11:15 PM.

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