WordPress.org

Forums

Manually adding individual adsense link units to pages? (4 posts)

  1. Paulc66
    Member
    Posted 1 year ago #

    Hello,

    On the good advice of Forum members I have created a child theme. Presently it only contains stylesheet and header.php.

    I want to ad adsense link units manually to specific places on pages.

    I've tried quick adsense and it hasn't worked.

    How can I do this manually for individual link units on individual pages?

    Cheers

  2. WPyogi
    Forum Moderator
    Posted 1 year ago #

  3. alchymyth
    Forum Moderator
    Posted 1 year ago #

    How can I do this manually for individual link units on individual pages?

    possibly by editing page.php of your theme - depending on the locations for your ads - and distinguish between individual pages by using conditional statements based on is_page(); http://codex.wordpress.org/Function_Reference/is_page

  4. Paulc66
    Member
    Posted 1 year ago #

    Thank you both, I don't know how I hadn't seen adsense explosion before , I'll definitely check it out, I just hope it will let me put link units in individually, where I want them to go.

    I'll also get round to copying my page.php file and the rest into my child theme and have a go at doing it manually following the codex article you've linked to , be a good way of familiarising myself with some more coding / editing.

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.