Skip to content
This repository has been archived by the owner on May 23, 2018. It is now read-only.

How to add adsense codes betweeen posts? #491

Open
techwindow opened this issue Dec 22, 2016 · 2 comments
Open

How to add adsense codes betweeen posts? #491

techwindow opened this issue Dec 22, 2016 · 2 comments

Comments

@techwindow
Copy link

techwindow commented Dec 22, 2016

Can somebody tell how to add adsense codes between posts in 2016 WordPress theme? I mean on the homepage and category pages and not in between any post.

@grappler
Copy link
Member

Since this repo is more for development, reporting bugs, and suggesting improvements, it is best to post a question like this here: https://wordpress.org/support/forum/themes-and-templates

Most likely you want to use an action https://developer.wordpress.org/reference/functions/add_action/ In this case you could use the_content to extend the content https://developer.wordpress.org/reference/hooks/the_content/ You should be able to find a few articles on Google explaining how to do this.

@techwindow
Copy link
Author

Don't know how to do this. Any help for this will be appreciated. Nobody in the forum has responded. That is why asking on Github.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants