Most of the sites on the Internet are created for the purpose of making a profit. That is why it will be useful for every owner of a web resource to learn how to get additional income from your own project with the help of advertising.
Instructions
Step 1
One of the options for placing ads on your site is to use the Yandex. Direct service. To participate in this system, you need to have a site on paid hosting (with the exception of free narod.ru hosting) with more than 300 visitors. You can receive the earned money to your wallet in the Yandex. Money payment system or transfer it to any bank card. To place an advertisement block from Yandex. Direct, apply for free moderation of your resource.
Step 2
There is also an advertising service "Runner". Unlike Yandex. Direct, it accepts sites not even free hosting. The attendance limit is also from 300 people. Payment is made by bank transfer or Webmoney. Another ad service is Google Adsense. Google Adsense even accepts low-traffic sites. However, there is a minimum payout of $ 100, which you can receive via bank transfer or Rapida payment system.
Step 3
After choosing the necessary affiliate program, proceed to posting its material on your resource. To do this, go to the page of the selected "affiliate" and find the html-code of the ad unit (size, color, content and other parameters of this unit, set up in advance). After that, go to the admin section of your site. First of all, back up your sidebar.php files and your css stylesheet. All code changes will take place in these files. This is done to avoid unforeseen situations.
Step 4
At the end of the style.css file, you need to add a description of the styles for your banners: 1) sb_banner_conteiner - the general block of banners; 2) height: 130px - the banner height; 3) background: # ff6c36 - background color; 4) padding: 7px - indent in all sides of the content of the block; 5) margin-top: 15px - outer top padding from another block; 6) margin-bottom: 15px - outer bottom padding from another block.
Step 5
At the beginning of the sidebar.php file, after the first tag, insert the link to your ad banner. Then save your changes and check the display of the ad unit. If you make any mistake, then the backups mentioned above will help you get everything back in place.