Here's how to do it:
- Log in to your Google AdSense account, navigate to the relevant page, and click on "FIX NOW."
- Click "DOWNLOAD."
- Select the file and save it for later. You will need to save it on the root domain of your WordPress.
- Go to your WordPress dashboard, and select "Plugins."
- Search for "file manager" click "Install Now" and select "Activate."
- Navigate to the toolbar on the left and select "WP File Manager." Once inside, click the "Add New File" button to proceed.
- Select "TXT: Plain text" as the file type and name it "ads.txt" or choose a name that suits your needs.
- Look for the file you created, right-click on it, and click "Code Editor."
- Paste the code you copied from Google AdSense into the file. Then, click "Save and Close." You’re all set!