We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Insert Adsense Code

  • #2566
    Avatar photo[anonymous]


    How can insert Adsense code on Publii?.

    Avatar photo[anonymous]

    If you have a Publii theme you can insert your AdSense code. For example, in a theme like Editorial at: – if you scroll down that page, under the heading “Dedicated Ad-Space”, you can see how you can put your ads above content, below content, and on the right side columns.

    So the key is to enter your AdSense ad code into the relevant ad sections set up for your theme. Or, if you’re developing your own theme, you’ll need to create the ad sections first.

    Avatar photo[anonymous]

    Dedicated Ad-Space only supporting few themes or premium themes?

    Avatar photo[anonymous]

    Much depends on how each theme is designed. Ad space slots are available in both premium themes and some free themes, plus of course, if you design your own theme, or have your custom own theme designed, then you can decide from the outset if you want ad space and where and how your ads appear.

    For example, the free TechNews theme at: includes options to insert your ad code snippets in the right side column, plus on the home page main content area, tag pages, and author pages. Check out:

    Or the premium N-Tech theme at: includes a superb range of predesigned ad slot options – scroll down the page to to see them.

    Avatar photo[anonymous]

    Well explained. Thanks!!