• axelom

    (@axelom)


    Hello everybody excuse me for my bad english because I’m french. I post here because I don’t find an help with French forums.

    Indeed I have the freshy theme 2 and I have recently introduced an advertisement of google adsense in my header.php.
    But I’v a problem with my sidebar who is “gone down” because of the advertisement.
    How I can fix this problem please ?

    My website : http://www.omactu.fr

Viewing 15 replies - 1 through 15 (of 15 total)
  • stigmat

    (@stigmat)

    try to wrap google script in div tag and apply for it a fixed width (728px) and float to the left

    Thread Starter axelom

    (@axelom)

    Ok thanks for your support but I am a beginner and I don’t know this code, can you give me it please ?
    I can add that I’ve try with a very small advertisement, but the result is the same.
    I’ve place the code at the end of the header.php, it’s good ?
    Thanks

    stigmat

    (@stigmat)

    it’s better to place it in index.php

    <div id=”googlead”><script type=”text/javascript”><!–
    google_ad_client = “pub-8192862475609535”;
    /* 728×90, date de crοΏ½ation 03/04/08 */
    google_ad_slot = “2329753142”;
    google_ad_width = 728;
    google_ad_height = 90;
    //–>
    </script></div>

    and somewhere in style.css add this

    #googlead { float:left; width:728px; display:block; }

    Roy

    (@gangleri)

    It could be as simple as a forgotten </div>, often in the header.php, but looking at your source, it could also be the sidebar.php.
    Btw, the sidebar is corrrect in the IE7 that’s I’m working with right now.

    Thread Starter axelom

    (@axelom)

    I’ve put my advertisement in my index.php and the menu is become again normal, but my ads is not at the left and she is cut. I’ve try to put this code “#googlead { float:left; width:728px; display:block; }” but the code deform my page, and if I put the code at the end the ads don’t move.

    If I’m not clear I can reformulate πŸ˜‰

    Roy

    (@gangleri)

    I thought I’d check your website validation to make my point, but I never saw this!

    Thread Starter axelom

    (@axelom)

    Lol in fact my theme is strange I believe, but I’m not ready to modify my code because I’m a beginner.
    But for the ads I think that it’s almost that no ?

    Thread Starter axelom

    (@axelom)

    A last think if I modify the width of my ads I respect the rules of google adsense or I can’t change the width ?

    Roy

    (@gangleri)

    Style.css probably, but be sure to not just change the sidebar width!
    Btw, if you use a theme that supports widgets, can’t you just use an adds widget or something?

    Thread Starter axelom

    (@axelom)

    Sorry but what is “btw” ?
    For the sidebar I don’t want to change the width.
    I don’t understand everything i must put the code in index.php no ?
    And in this index can I modify the code of the advertisement in order to reduce the width of my ads.

    Thanks πŸ˜‰

    Roy

    (@gangleri)

    “By the way” πŸ™‚

    You’re going to have to spend some evenings trying to figure out what’s what and what you can do with it…!

    Your index.php (and other php-files) tell a computer WHAT to display, the style.css (“stylesheet”) tell a computet HOW to display page content. It is the stylesheet where designing takes place.

    I guess the “codex” is your friend!

    Thread Starter axelom

    (@axelom)

    “By the way” Red hot chilly papers ? ^^

    Thanks for all I will lool this codex, but a last thing you don’t have tell me if I can modify the width of my ads ?

    Thread Starter axelom

    (@axelom)

    I finally listen you and I have modify the width of my sidebar thanks.

    Roy

    (@gangleri)

    Sorry but what is “btw” ?

    “By the way” πŸ™‚

    “By the way” Red hot chilly papers ? ^^

    Yes please, read πŸ™‚

    In any case, your layout might get screwed up if you only change the sidebar width. But just go ahead by trial and error. Once you know where you have to be in the stylesheet, you can fool around a little. Be sure to saveguard a copy of the original stylesheet in case things go terrible wrong!

    Thread Starter axelom

    (@axelom)

    Ok but I believe that I will stay like today because I’m bad for this type of thing and I’ve not understand everything, even if I’ve use “systran” for translate your lyrics ^^

    Good day for you and this great forum.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Sidebar’ is closed to new replies.