Single Ads
Allows you to display a single ad on the frontend.

Displaying Single Ads

Display Ads using Short Code

  • Copy shortcode for the ad from the Manage Ads table.
  • Paste copied shortcode in the editor as shown in the image below.
  • Shortcode for reference : [wpadcenter_ad id=139 align='none' max_width='on' maxwidth_value=300 devices=mobile,tablet,desktop]
  • Alignment can be specified by providing the values as "left", "right", "center" or "none".
  • Max width can be set to "on" or "off".
  • Max Width Value is the value in pixels.
  • To display ads on specific devices, specify the names of devices. If the 'devices' attribute is not provided the ad will be shown on all devices.
  • After adding the shortcode, click on Publish/Update button.

Display Ads using Gutenberg Block

  • To display Ads using Gutenberg block, add the WPAdCenter Single Ads block to the editor as shown in the image below.
  • From here you can select the ad that you wish to display and specify alignment for the ad.
  • To provide maximum width for an ad, enable the Max Width option and provide a maximum width value.
  • To display ads on specific devices, select the corresponding checkboxes. The changes will take effect on the preview page or live page and not while editing.
  • Once the ad and alignment are set you can click on Publish/Update button.

Display Ads using Widgets

  • To display ads using the widget, select the WPAdCenter Single Ads widget as shown in the image below.
  • You can specify the title of the ad.
  • Select ad from the drop-down.
  • To provide maximum width for an ad, enable the Max Width option and provide a maximum width value.
  • To display ads on specific devices, select the corresponding checkboxes.
  • Click on the Save button.
Display Ads using Widget for WordPress v5.8+
Since the WordPress version 5.8 introduced "block as a widget feature", the WPAdCenter Single Ads widget has been replaced by its Gutenberg block. Please refer to screenshots below in order to place blocks in your widget area
please refer to above 'Display Ads using Gutenberg Block' for further options.

Display Ads using Elementor

  • Select WPAdCenter Single Ad widget, it is present under general widgets.
  • Here you can select the ad to be displayed from the dropdown.
  • Also, you can specify the ad alignment and preview changes in real-time.
  • To provide maximum width for an ad, enable the Max Width option and provide a maximum width value.
  • To display ads on specific devices, select the corresponding checkboxes. The changes will take effect on the preview page or live page and not while editing.
  • Click on Publish/Update button.
Last modified 4mo ago
Copy link