Ads

Quickly place multiple ads on your site by utilizing the Google AdSense program or any other kind of ad codes.

Locations (default)

The plugin provides some default ad locations (inside post content) ready to insert ad codes:

# Location Ad format Notes
1 Before Content any
2 After X Paragraphs any There are 3 such locations available. You can put your ad for example after 2nd, 5th and 8th paragraph
3 After X Images any
4 After the ‹!--more--› tag any
5 In the middle of content any
6 Before the last paragraph any
7 After Content any

Locations (theme)

Additionally the theme registers the following locations:

# Location Ad format Notes
1 Before header theme area horizontal
2 Before content theme area horizontal
3 Before "Related Entries" section horizontal An ideal location to utilize some Content Discovery Platform, like Outbrain or Revcontent
4 Before "More From" section horizontal
5 Before comments area horizontal
6 Before "Don't miss" section horizontal
7 Inside grid collection rectangle, vertical
8 Inside list collection rectangle, horizontal

Setup

To place an ad on your site, you have to first create it and then assign to the target location.

Create ad

To create ads please follow these simple steps:

  1. Go to the Ads panel
  2. Click the Add New link

  1. Ad Title
  2. Ad Type - custom ads (for example your own image or AdSense)
  3. Shortcode - paste into the post to display the ad
  4. PHP Code - for use in your custom templates
  5. Do not use as random ad - when you set an ad location to display random ads, this ad will be ommited
  6. Groups - similar to post categories, you can assing ads to ad groups
  7. Order - when displaying ads from a group, ads with higher order will be displayed first
  8. Custom ad settings

  9. Image - the image to be used
  10. Link - the URL the ad is supposed to link to
  11. Code - HTML/ JavaScript code for your ad. If used togheter with image, the image is displayed above the code
  12. Disable on devices

  13. Turn off this ad on particular devices (you can set resolution breakpoints for devices in Settings › AdAce Options › General

AdSense settings

  1. Paste AdSense code here and it will be automatically imported into the settings below
  2. AdSense Slot id
  3. AdSense Publisher id - paste into the post to display the ad
  4. Ad type responsive ads stretch automatically to their location, fixed size ads have sizes set in pixels
  5. Main ad size to use on all resolutions
  6. Custom ad sizes for devices - you can set the ad size per device, if not set the main size is used

Assign ad

To create ads please follow these simple steps:

  1. Go to the Settings › AdAce Options › Ad Slots panel
  2. Select the ad slot to assign to

  1. Ad selection - you use any of your ads or a random ad. For repeating slots (inside collections) you can use the Group setting to sequentially display each ad from the group. For random ads you can use all ads or only ads from a group
  2. Display on home - if unchecked, the ad will not be displayed on the homepage
  3. Display on singular - you can choose the post types for which the ad will be used on the single post view
  4. Display on archive - you can choose the taxonomies for which the ad will be used on the archive
  5. Display for logged in users - if unchecked, the ad will not be displayed for the logged in users
  6. Display on AMP - wheter to display the ad on Accelerated Mobile Pages
  7. Minimal sizes - the slot will be stretched to fit this minimal size
  8. Alignment of the contents of the slot
  9. Margin to be used around the slot

Some slots might have some slightly different controls, depending on it's usage.

Ads on the homepage

AdAce allows you to inject ads into your homepage post colletions.

To set it up please follow these simple steps:

  1. Go to the WordPress Admin › Appearance › Customize panel
  2. Switch to the Home › Main Collection section
  3. Scroll down and set the Ad option to "inject into post collection"
  4. Inject ad at position determines which position the ad will take (for example position 4 means it will be injected after post 3)
  5. Repeat ad after each X positions allows you to repeat the ad every X posts.
  6. You can assign the ads in Settings › AdAce Options › Ad Slots panel. Please use the Inside X Collection ad slots, where X stands for your main collection template. For example if you use "Grid with sidebar" use the "Inside grid collection" slot

Ads in the archive

AdAce allows you to inject ads into your archives, for example category or tag archives.

To set it up please follow these simple steps:

  1. Go to the WordPress Admin › Appearance › Customize panel
  2. Switch to the Posts › Archive section
  3. Scroll down and set the Ad option to "inject into post collection"
  4. Inject ad at position determines which position the ad will take (for example position 4 means it will be injected after post 3)
  5. Repeat ad after each X positions allows you to repeat the ad every X posts.
  6. You can assign the ads in Settings › AdAce Options › Ad Slots panel. Please use the Inside X Collection ad slots, where X stands for your main collection template. For example if you use "Grid with sidebar" use the "Inside grid collection" slot

Ad groups

AdAce allows you assign ads to the ad groups. Then, you can assign those groups to slots for random rotation or display them sequentially in collections.

To set it up please follow these simple steps:

  1. Go to the WordPress Admin › Ad › Groups panel
  2. Type in the name of the group and press Add new group
  3. You can assign ads to groups in ad edition screen (please see above)
  4. Go to the Settings › AdAce Options › Ad Slots panel
  5. For any slot you can set the Ad to Random and then below choose the group. The random ads will be only pulled from the chosen group
  6. For repeatable fileds (for example in collections), you can set Ad to Group. The ads from that group will be displayed one after the other in instances of the slot
  7. You can affect the sequence of the ads displayed using the order setting in the ad edition screen (please see above). Ads with the same order will be ordered by date