• i would like to add an adsense under the first post of my blog, i follow the instruction to add the code but after i save the change, i reopen the file this thing come out: “Not Found
    Sorry, but you are looking for something that isn’t here.”

    Why?

Viewing 15 replies - 1 through 15 (of 16 total)
  • What “instructions” did you follow and which index.php did you change? Without knowing what you specifically did, we really can’t help.

    Thread Starter vanneyat

    (@vanneyat)

    sorry, i m using a 3 column theme call Xmark 1.0.2, now i can only add adsense at the sidebar widget but i would like to add adsense under the first post of my blog. So i open the index.php file, i replace my adsense code in this space:

    <!–ADD YOUR YOUR ADSENSE CODE HERE–>

    <!–replace this line with your code–>

    <!–END ADSENSE–>

    then i save the file. But when i reopen the file that i save just now, it shows: “Not Found
    Sorry, but you are looking for something that isn’t here.”

    Thread Starter vanneyat

    (@vanneyat)

    Anyone there? Pls. help!

    TQ!

    Keep it in this thread only!
    Duplicate topics get deleted.

    Thread Starter vanneyat

    (@vanneyat)

    o

    Re upload your template’s index page and then try again, this time making sure that all quotes are closed and any brackets are closed. If that doesn’t help check your servers error log for other clues.

    Thread Starter vanneyat

    (@vanneyat)

    i didn’t change it online, infact i change it from the index.php file that i downloaded to my hard disk.

    coz i when i first try to change it on my theme editor, it doesn’t work. seems like cannot save changes.

    Then the file probably wasn’t write able. Make sure when your reuploading your file that you put it back in the correct template folder for example /wp-content/themes/xmark Then try clearing your browser cache before viewing your blog again.

    Thread Starter vanneyat

    (@vanneyat)

    if it is not writable why there are texts inside the file said:
    <!–ADD YOUR YOUR ADSENSE CODE HERE–>

    <!–replace this line with your code–>

    <!–END ADSENSE–>

    ?

    1. In the online Theme Editor is not writeable because of the file permissions. Don’t sweat with that.
    2. Edit the file on your computer in a plain text editor (like Notepad) and upload it via FTP.

    Thread Starter vanneyat

    (@vanneyat)

    ya, i did it that way moshu. but after i edit the file, and i reopen it , the script inside change to “Not Found
    Sorry, but you are looking for something that isn’t here.”

    Then probably you are not pasting the code correctly!
    Make sure you delete this whole line:
    <!--replace this line with your code-->
    and you copy/paste the WHOLE adsense code with the closing js tags and everything.

    Thread Starter vanneyat

    (@vanneyat)

    the original is like this:

    </div>

    <?php if ($postnum == $showadsense1) {

    echo ‘

    <div align=”center” class=”cgoogle”>

    <!–ADD YOUR YOUR ADSENSE CODE HERE–>

    <!–replace this line with your code–>

    <!–END ADSENSE–>

    </div>

    ‘;

    } ?>

    <?php $postnum++; ?>

    Thread Starter vanneyat

    (@vanneyat)

    then i replace it :

    </div>

    <?php if ($postnum == $showadsense1) {

    echo ‘

    <div align=”center” class=”cgoogle”>

    <script type=”text/javascript”><!–
    google_ad_client = “pub-0189344906991676”;
    google_ad_width = 160;
    google_ad_height = 90;
    google_ad_format = “160x90_0ads_al”;
    //2007-05-16: edisonlim.com
    google_ad_channel = “3439399155”;
    google_color_border = “FFFFFF”;
    google_color_bg = “FFFFFF”;
    google_color_link = “940F04”;
    google_color_text = “000000”;
    google_color_url = “800040”;
    //–>
    </script>
    <script type=”text/javascript”
    src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
    </script>

    </div>

    ‘;

    } ?>

    <?php $postnum++; ?>

    Thread Starter vanneyat

    (@vanneyat)

    then when i reopen the same file, it became:

    post_content); ?>

    in:

    Not Found
    Sorry, but you are looking for something that isn’t here.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Why my index.php cannot be change?’ is closed to new replies.