• My adsense adv insert via text on the side bar seem always appear at the bottom or centre part. I want it to appear at the top. How to I go about it.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Can’t imagine how it look lol.

    Perhaps if you post a screenshot, people here will easily help you.

    please post a link to your site –
    the sidebar might have static elements at the top, in which case you might need to hard-code the adsense into the sidebar.php file.

    Thread Starter Steve883

    (@steve883)

    My link is https://www.howtotelemarketing.com If you look at the side bar, you’ll notice the adsense ad is at the centre. I want them to appear at the top align with my post.

    Appreciate your help. Please advise in layman term as I’m no good in coding. Thanks again

    there seems to be a hard-coded (broken) adsense code in sidebar.php (?)

    <div class="sidebar_left">
    			<ul>
    				<li>
    ADSENSE CODE SECTION
    </li>

    try and locate the template for the left sidebar, and remove the hard-coded adsense section.
    (this part: <li> ADSENSE... </li> )

    Thread Starter Steve883

    (@steve883)

    Where is this sidebar.php located? and if I remove this
    <li> ADSENSE... </li>, will my adsense shown or valid?

    dashboard – appearance – editor: select sidebar.php from the list on the right, make sure your active theme is selected at the top;

    the code actually is:

    <li>
    					<?php include('adsense_sidebar.php') ?>
    				</li>

    so, if you remove this, the gap should get removed.

    the adsense which is showing in the middle of the sidebar should stay visible and valid.

    Thread Starter Steve883

    (@steve883)

    My sidebar.php shows:-

    vti_encoding:SR|utf8-nl
    vti_timelastmodified:TR|31 Oct 2011 13:58:30 -0000
    vti_extenderversion:SR|5.0.2.4803
    vti_cacheddtm:TX|31 Oct 2011 13:58:30 -0000
    vti_filesize:IR|1962
    vti_backlinkinfo:VX|

    I can’t find the codes you stated. Please advise and thanks for your time

    Thread Starter Steve883

    (@steve883)

    Hello alchymyth and whoever could help,

    My problem of adsense ads appeared in the centre instead of top in side bar is still not solved yet. Appreciate your help. Thanks

    Steve.

    Find in your sidebar.php and delete the adsense code there.

    It seems that theme are “infected” with other people adsense code.

    <!--google_ad_client = "pub-1199705375920649";

    When I compare the pub no with the one in the text widget, it’s different.

    Hope it solve it.

    My sidebar.php shows:-
    vti_encoding:SR|utf8-nl

    your site might be cached in some way.
    try to disable all caches and see if this allows you to edit sidebar.php

    alternatively, check the documentation of your theme, and see if it describes how to use the ‘adsense ready’ feature, i.e. how to add your own adsense to the middle sidebar.

    Thread Starter Steve883

    (@steve883)

    Dear Pangeran Wiguan, how do I delete the adsense code which appear different from mine?

    Dear alchymyth, How do I disable caches? my sidebar.php codes show different from what you’ve said?

    Steve, what codes are there in your sidebar.php?

    If you can’t find any alien adsense code there, perhaps it was injected through functions.php.

    Try checking there too, or like alchymyth said that theme might come with the “adsense ready” feature where if you don’t change it it will show up the developer of the theme adsense code instead of yours.

    Thread Starter Steve883

    (@steve883)

    Dear Pangeran Wiguan,

    My sidebar.php shows:-

    vti_encoding:SR|utf8-nl
    vti_timelastmodified:TR|31 Oct 2011 13:58:30 -0000
    vti_extenderversion:SR|5.0.2.4803
    vti_cacheddtm:TX|31 Oct 2011 13:58:30 -0000
    vti_filesize:IR|1962
    vti_backlinkinfo:VX|

    Thread Starter Steve883

    (@steve883)

    And my theme function show this code

    vti_encoding:SR|utf8-nl
    vti_timelastmodified:TR|31 Oct 2011 13:58:30 -0000
    vti_extenderversion:SR|5.0.2.4803
    vti_cacheddtm:TX|31 Oct 2011 13:58:30 -0000
    vti_filesize:IR|547
    vti_backlinkinfo:VX|

    I can’t see any adsense id code here as well

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to move adsense code to top of sidebar’ is closed to new replies.