Member-only story
How to Insert Ads Code (AdSense, Amazon Affiliates link etc.) in WordPress without Plugins
Before you hurry and start looking for plugins to insert ads into your wordpress plugin, I highly recommend you to read this post :)
You can place the codes in the editor and use the old editor. This eliminates the need for plugins. You can also choose the free code widget in the sidebar
To place JavaScript or HTML code directly in the article or in the page in general, see the explanation in pictures.
In the following image, you will see how the AdSense code has been placed from the editor without any additions
Many WordPress users are not aware of some aspects of WordPress, they resort directly to overloading their site with plugins while they are indispensable
To place JavaScript or HTML on the sidebar, we choose a free widget in the widget, for example, but not limited to. We want to place an ad like this: