Closed Nexus-Gits closed 6 months ago
Hello! Sure, I'd be happy to help you add AdSense to the Heo theme. There are two main methods to do this:
Automatic Ads (Simpler):
Custom Ad Units (More Complex):
After the configuration, use the AdSlot component (AdSlot) in your Heo theme wherever you want to display ads.
you can refer to the approach used in other themes, such as the Fukasawa theme. For instance, in the themes/fukasawa/index.js file, a similar method is employed:
import { AdSlot } from '@/components/GoogleAdsense'
const LayoutBase = ...{
{/* Ad unit displayed here */}
<div className='mt-2'>
<AdSlot type='native' />
</div>
}
This demonstrates how to integrate the AdSlot component in the Fukasawa theme. Feel free to adapt this example to add AdSense to your Heo theme. If you have any more questions or need further assistance, please let me know!
How i set up, ads insert after every certain word later on every blog post.
Please tell me how add adsense code in heo site.