Ads
Go to Admin -> Ads.
Create an ad
Click Create, then fill the form: a name, a key (used by the shortcode), the sort order, the ad type (a custom ad with an image and a link, or Google AdSense), the status, the location and an expiry date. A custom ad has a desktop image, and optional tablet and mobile images.


Insert in an article or a page
The list shows the shortcode of each ad. Copy it, for example:
[ads key="ABCDE12345"][/ads]Paste it anywhere in the content of a page or a post and the ad is displayed there. You can also pick the Ads shortcode in UI Blocks (see Short code).
Show in a location
An ad can also be tied to a location registered by the theme. In the form of the ad, choose the location in the Location box. The ad then shows wherever the theme displays that location. If several active ads share a location, one of them is picked at random on each page load. An expired ad is never shown.
UltraNews registers seven locations:
| Location | Where it shows |
|---|---|
Header Ads (header-ads) | The banner on the right of the logo in Header style 3. See Header. |
Panel Ads (panel-ads) | Nowhere by default. Show it with an Ads widget set to this location. |
Top Sidebar Ads (top-sidebar-ads) | In the Primary sidebar of the demo, through an Ads widget, and next to the posts of a Categories tab posts block that selects it. |
Bottom Sidebar Ads (bottom-sidebar-ads) | In the Primary sidebar of the demo, through an Ads widget, and next to the posts of a Recent posts block that selects it. |
Custom 1, 2 and 3 (custom-1 to custom-3) | Nowhere by default. Use them with an Ads widget. |
To show a location in a widget area, open Admin -> Appearance -> Widgets, drag the Ads widget into an area (for example Primary sidebar) and pick the Ads location. See Widgets. The Recent posts and Categories tab posts shortcodes have an Ads location field in their Right column tab (see Short code).
The primary sidebar of a post page, with the ads of the two sidebar locations:

Header style 3 with the ad of the Header Ads location:

Google AdSense
Go to Admin -> Ads -> Ads Settings.
Choose the Google AdSense mode (disabled, Auto Ads or Unit Ads) and paste the content of your ads.txt file.
