WordPress.org

Ready to get started?Download WordPress

Forums

Pasting Adsense Into Source Code/HTML in WP (8 posts)

  1. panelfabsource
    Member
    Posted 3 years ago #

    I need to paste my adsense link within source code for my webpage, but cannot find the HTML source code. I need to paste in between < body > & <body >.

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    http://codex.wordpress.org/Theme_Development
    http://yoast.com/wordpress-theme-anatomy/

    there are plenty of template files whare you could add the ad code.

    for a more detailed suggestion, you need to define more clearly where you want to have your ads to show in your site.

  3. panelfabsource
    Member
    Posted 3 years ago #

    where do you access source code/html?

  4. panelfabsource
    Member
    Posted 3 years ago #

    Also, is it possible to paste the html code from adsense in a text-box widget? I can't get that method to work.

  5. panelfabsource
    Member
    Posted 3 years ago #

    I'm using the "twenty ten" theme

  6. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    where do you access source code/html?

    the source code is php with a html structure; how to edit it, see here:
    http://codex.wordpress.org/Editing_Files

    Also, is it possible to paste the html code from adsense in a text-box widget?

    yes, not a problem.
    you might need to un-tick 'Automatically add paragraphs'

    I'm using the "twenty ten" theme

    twenty ten will be overwritten with the next upgrade of your wordpress version - consider http://codex.wordpress.org/Child_Themes

    there are plenty areas in twenty ten where you can add ads into the source code; however, the first step has to come from you - you need to clarify where you want the ads to show.

    and don't forget to search for a suitable adsense plugin.

  7. panelfabsource
    Member
    Posted 3 years ago #

    I've had luck just pasting adsense code into text widget boxes, is there a reason you would have to use the adsense plugins?

  8. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    there is never a reason to use any plugin if you can do the task without.

Topic Closed

This topic has been closed to new replies.

About this Topic