I’d really like to insert a 160×600 skyscraper ad under the share buttons on the left on single post pages. Where in the theme code should I place this code?
Thanks in advance!
Hi Jeremy,
To insert an 160 x 600 px Ad under the share buttons on the left on the single post of the DW Focus theme. Please do as following:
Step1: Download and then upload the AdRotate plugin. Please search the plugin here: http://wordpress.org/plugins/adrotate/
Step2: Log in to DashBoard > Adrotate > Manage Ads > Add new.
Step3: Please add your title, then add the following code to the AdCode box.
<a href="%link%"><img src="Your Image Link" /></a>
See the screenshot:
Note: Please add your image to the Media then copy / paste the image link . Replace “Your Image Link” with your image link which was copied before.
Step5: Save Advert
Step6: Go to “Directly in a theme” option, you can see the PHP code. Copy and paste this code to the functions.php file.
See the screenshot:
For example: You open the functions.php file then add the code from Step 6 to the line 436 or line 448
See the screenshot:
Hope this works!
It works perfectly! Thanks!
Please login or Register to submit your answer