Below is the method that I would like to share is how to place the Google Adsense in any location inside the post as our wish.
We need 2 step to do it. Firstly we need to make a shortcode and second step is insert the shortcode inside the post.
I. Prepare Shortcode
1. Login to our Wordpress Dashboard.2. Go to [appearance]
3. Click [Editor]
4. In the Templete Menu, Click [function.php]
5. Insert below codes into last code of function.php
function adsenseads() {
return '<div id="adsenseads">
insert your google adsense code here
</div>';
}
add_shortcode('myads1', 'adsenseads');
Note :
You can change the shortcode title (in red color) with any name as you like.
6. Click [update file]
II. Place your Google Adsense inside the post.
Place your google adsense at any place inside your posting as you like, just insert the shortcode name in the location that we want.As above example code is 'myads1'. So we just insert :
[myads1]
Below picture is the example :
To View in Indonesia version regarding how to place a Google Adsense inside the Post. Please Click :
Cara Memasangkan Google Adsense ke dalam Posting
Run adsense ads in any website. .com, .in. .net from hosted account. No tricks used to get approved the account.
ReplyDeleteskype : buyourservice