chrisrhymes / bulma-clean-theme

A clean and modern Jekyll theme based on Bulma
http://www.csrhymes.com/bulma-clean-theme/
MIT License
383 stars 485 forks source link

Incorporating AdSense into the theme? #131

Closed ghar-nainital closed 12 months ago

ghar-nainital commented 1 year ago

Hi, Thank you for your work. Its indeed looks great and is very customizable. My query was that some jekyll themes support google adsense via

adsense:
  client_id: 'ca-pub-XXXXXXXXXXXX' # Google Adsense client ID
  auto_ads: true

This doesn't work out of the box for this theme so I was wondering what specific changes might be needed to incorporate google adsense into this theme. Thank you. Best.

chrisrhymes commented 12 months ago

Hi, sorry for the late reply to this. I can't comment specifically for Google adsense, but you can add your own custom scripts using the head-scripts.html and footer-scripts.html include files. https://www.csrhymes.com/bulma-clean-theme/docs/getting-started/scripts/#adding-scripts

You would then need to customise the page and/or post layouts if you need to insert html inside the template. You can do this by overriding theme defaults: https://www.csrhymes.com/bulma-clean-theme/docs/getting-started/scripts/#adding-scripts