Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   How to add adsense (http://forum.bytesforall.com/showthread.php?t=3771)

pilsen1 Oct 7, 2009 06:05 PM

How to add adsense
 
How do I put adsense in my blog? where is the HTML to add the code?
I'm very new to coding.
any help will be welcomed thank you

juggledad Oct 7, 2009 06:18 PM

do a quick search of the forums using 'adsense' and I think you will find an answer

pilsen1 Oct 7, 2009 06:26 PM

I will thank you.

pilsen1 Oct 7, 2009 07:02 PM

I have been reading the other posts but I can't figure out how to put my ad on the right side of the page. mysite

jfrenaye Oct 7, 2009 07:15 PM

Create a TEXT WIDGET in the right column. Go to AdSense and get the code for whatever ad panel you want. FOr proper layout, make sure your column is sized accordingly.

Get the HTML code from Adsense and then past it in the widget.

Click SAVE and give it about a half hour to recognize and about 12 hours to read

pilsen1 Oct 7, 2009 08:02 PM

Thank you.

pilsen1 Oct 8, 2009 04:51 AM

I was able to put my ad in the banner section but how do I center it?

juggledad Oct 8, 2009 04:58 AM

Centering it depends on how you put it there. How did you put it there?

pilsen1 Oct 8, 2009 05:04 AM

I went to ATO>and added the code on the configure header area box after image%.

juggledad Oct 8, 2009 05:15 AM

so you did not add a widget area as was suggested? that means it thkes on the attributes of the container it is in.
try wrapping it in a '<div style="center">...</div>'

pilsen1 Oct 8, 2009 05:37 AM

so after image%(space) I add <div style="center">(space)ad code(space)</div>

Is that correct? Mysite

juggledad Oct 8, 2009 06:43 AM

give it a try, if it doesn't work Add a single widget to the header area and try it that way

pilsen1 Oct 8, 2009 07:37 AM

Ok taht didn't work, can you tell me how to add a widget?, I'm really new at this.

juggledad Oct 8, 2009 07:57 AM

look at the directions at ATO->Add new WIDGET AREAS

pilsen1 Oct 8, 2009 04:07 PM

So I would wrap the widget around the ad code?

juggledad Oct 9, 2009 04:57 AM

1) put in the code to add a single widget
2) view the page
3) go to appearances->widgets
4) add a text widget to the new widget area
5) put the <div...etc in the text widget

pilsen1 Oct 11, 2009 05:10 PM

How long does the widget take to apper in the page?
Is it normal that the text that I add into the Text widget dissapears after I save it and close it?

juggledad Oct 11, 2009 06:18 PM

if you add text to the widget, it should show up immediately
Do you have anything in the 'Inactive Widgets' area of the widgets page? If so, drag them all off the screen (you have to do it one at a time) and then see if you can add the text in

pilsen1 Oct 11, 2009 10:34 PM

Ok, I Created the widget, added the code in it like this (<div style="center"><script type="text/javascript"><!--
google_ad_client = "pub-2480772434468067";
/* 728x90, created 10/7/09 */
google_ad_slot = "4380828362";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>)

pilsen1 Oct 11, 2009 10:36 PM

But it still not centered, I tried adding the <div style="center">...</div> in between the code for the widget and it didn't work either.

juggledad Oct 12, 2009 05:03 AM

what you have done is created this
HTML Code:

        <div id="ad_sense_area" class="bfa_widget_area">
                <div id="text-2" class="widget widget_text">                       
                        <div class="textwidget">
                                <div style="center">
                                        <script type="text/javascript"><!--
                                                google_ad_client = "pub-2480772434468067";
                                                /* 728x90, created 10/7/09 */
                                                google_ad_slot = "4380828362";
                                                google_ad_width = 728;
                                                google_ad_height = 90;
                                                //-->

                                        </script><br />
                                        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                                        </script>
                                </div>
                        </div>
                </div>
        </div>

you can think of wach <div>...</div> as a box. Styling that is applied to a div effects itself and nay <div>'s that are INSIDE it (unless there is other CSS that overrides it.)

In this case, you have centered the inside <div>, but the outsides one is not centered.

Get rid of the <div style=center"> and it's </div>
add some CSS in the CSS Inserts
HTML Code:

div#ad_sense_area script {
 margin-right: auto;
 margin-left: auto;
 }


pilsen1 Oct 12, 2009 10:39 AM

It didn't work

juggledad Oct 12, 2009 12:43 PM

While you did add the css I don't see that you changed the widget. If you would like some private help, send me a PM and I'll quote you my rates


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

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