Download
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]

    Hi,

    How can insert Adsense code on Publii?.

    #2567
    Avatar photo[anonymous]

    If you have a Publii theme you can insert your AdSense code. For example, in a theme like Editorial at: https://marketplace.getpublii.com/themes/editorial/ – 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.

    #2568
    Avatar photo[anonymous]

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

    #2569
    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: https://marketplace.getpublii.com/themes/technews/ 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: https://getpublii.com/themes/demo/technews/

    Or the premium N-Tech theme at: https://marketplace.getpublii.com/themes/n-tech/ includes a superb range of predesigned ad slot options – scroll down the page to to see them.

    #2572
    Avatar photo[anonymous]

    Well explained. Thanks!!