Title: Default AdCode
Last modified: August 21, 2016

---

# Default AdCode

 *  Resolved [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/default-adcode/)
 * In my site i have the same AdCode for all the banner but there isn’t a setting
   for choose a default code.
    Every time i need to insert manually. It’s possible
   add this feature?
 * [http://wordpress.org/plugins/adrotate/](http://wordpress.org/plugins/adrotate/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/default-adcode/#post-4105241)
 * For fix the problem i have added a javascript code in my template:
 *     ```
       function adrotate_default() {
       	if($_GET['page']=='adrotate-ads') {
       		echo '<script type="text/javascript">
       		jQuery(document).ready(function() {
       			if (jQuery("#adrotate_bannercode").text() == "") {
       			jQuery("#adrotate_bannercode").text("<a href=\'%link%\'><img src=\'%image%\' /></a>");
       			}
       		});
       		</script>';
       	}
       }
   
       add_filter('admin_head', 'adrotate_default');
       ```
   
 *  [Eugenio Petulla’](https://wordpress.org/support/users/igenius/)
 * (@igenius)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/default-adcode/#post-4105244)
 * This will be a nice feature!!
 * Great!!
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/default-adcode/#post-4105358)
 * I’ll do you one better: [http://www.adrotateplugin.com/2013/09/clickable-ad-templates-of-sorts/](http://www.adrotateplugin.com/2013/09/clickable-ad-templates-of-sorts/)
 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/default-adcode/#post-4105405)
 * my solution is better because my staff does not know html, so they have less 
   of the steps to add a new banner
 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/default-adcode/#post-4105406)
 * my solution is better because my staff does not know html, so they have less 
   of the steps to add a new banner…
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/default-adcode/#post-4105420)
 * Until an ad is different from your ‘template’ or when your theme has an update
   and overwrites your functions.php (and thus your edit) 😉
 * But sure, your method has less clicking to achieve a similar result.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Default AdCode’ is closed to new replies.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Arnan](https://wordpress.org/support/users/adegans/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/default-adcode/#post-4105420)
 * Status: resolved