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 » Header configuration & styling »

[SOLVED] Creating centered adsense below the header image


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 Sep 14, 2011, 12:55 AM
sean.e
 
14 posts · May 2011
Hi!

I've scoured all the threads on header + adsense, and am still having trouble. It seems a very simple problem: I am trying to get the ad under my menu to be aligned center, instead of aligned right.

I am using the top widget area to accomplish this, but I can't figure out how to tweak the alignment. Here is the code I'm using (taken from another threat on the same subject:

<div id="my-head"> <?php bfa_widget_area('name=topwidgetarea&cells=2&width_ 1=730&width_2=230&align=8&align_2=6&before_widget= <div id="%1" class="header-widget %1">&after_widget=</div>'); ?> </div>

Here is my site: http://www.newmusicrelease.net

Thanks for any help.

Sean
  #2  
Old Sep 14, 2011, 11:48 AM
lmilesw's Avatar
lmilesw
 
10,113 posts · Jul 2009
Central New York State USA
Take a look at the New Widget Area section of the theme options. A single celled widget area that is build to align the contents in the center would do the trick. Not sure what all the other code you have is for along with having a two celled widget area you have it wrapped in a div which in this case I don't think is necessary.
__________________
~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.
  #3  
Old Sep 14, 2011, 03:35 PM
sean.e
 
14 posts · May 2011
Wow. I never saw the new widget area before, so thanks for that!

I'm still having trouble. It doesn't make a whole lot of sense to me. I can't tell which things will give me a widget that displays a 728 (or whatever) by 60 ad in the very center under my menu.

Can anyone help me with this? Can anyone produce the little bit of code for me to insert?

Much, much obliged.



-sean
  #4  
Old Sep 14, 2011, 04:33 PM
lmilesw's Avatar
lmilesw
 
10,113 posts · Jul 2009
Central New York State USA
Try this
First remove the widget from the widget area you put in. Then remove the code for the widget area.
Now go to the Add New Widget Area section and delete the widget area you just removed the code for.
Add the following code in the same place you just removed the old code from. The default should align what you put in it top center. If it doesn't it's an easy fix.
HTML Code:
<?php bfa_widget_area('name=Top Widget Area'); ?>
After you have that there you should take out the widgets you have in the current widget area and delete the old widget area in
__________________
~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; Sep 14, 2011 at 04:37 PM.
  #5  
Old Sep 14, 2011, 05:52 PM
sean.e
 
14 posts · May 2011
Hmm.

I did as suggested, but it did not give me a widget area on the widget selection screen (where it has left, left inner, right, and right inner widget areas.

Wonder why.
  #6  
Old Sep 14, 2011, 06:39 PM
juggledad's Avatar
juggledad
 
22,382 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
did you go view the site before looking at the widget area? The code has to be run (by visiting the site) before the widget area will show up
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Sep 15, 2011, 12:42 AM
sean.e
 
14 posts · May 2011
Yes, thanks. I did that, and the widget is there, but still displaying to the left. Here is the code I currently have in place:
<?php bfa_widget_area('name=Top Widget Area'); ?>

and my site still looks like this: newmusicrelease.net
  #8  
Old Sep 15, 2011, 06:51 AM
lmilesw's Avatar
lmilesw
 
10,113 posts · Jul 2009
Central New York State USA
You just need to use some CSS to center. Here is one snippet that should work.
HTML Code:
#text-29 {
    text-align: center;
}
__________________
~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.
  #9  
Old Sep 15, 2011, 03:22 PM
sean.e
 
14 posts · May 2011
So I just stick that in the css page in "editor" at any place? Does it matter?

I've never done something like that before, so I'm not sure where the code should actually be placed!


Thx.
  #10  
Old Sep 15, 2011, 03:55 PM
juggledad's Avatar
juggledad
 
22,382 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
put the css in the ATO->Add HTML/CSS Inserts->CSS Inserts option
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by lmilesw; Sep 15, 2011 at 09:16 PM.
  #11  
Old Sep 16, 2011, 09:28 AM
sean.e
 
14 posts · May 2011
amazing! It worked!

Thanks guys

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Creating a Fluid Image Header TerryEsh Header configuration & styling 2 Oct 13, 2010 07:03 PM
creating my own header image faigekobre Header configuration & styling 6 Jun 18, 2009 02:14 PM
Can't get logo and header image overlay to be centered on all screen resolutions jockoe Header configuration & styling 1 Feb 27, 2009 03:44 PM


All times are GMT -6. The time now is 06:48 PM.


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