Skip to content

Banners ​

/dashboard/settings/banners

Banners let you place your own HTML code, such as ad network tags, affiliate links or announcements, in predefined spaces across the website.

Pro feature

Banners are available in Chevereto Pro.

How banners work ​

Each ad space is a text area that takes HTML code, including <script> tags. The code is printed as-is (not escaped) inside a wrapper element:

html
<div id="banner_home_after_cover" class="ad-banner">
  <!-- Your banner code -->
</div>

Use the ad-banner class to style every banner, or the id to style a single space. Leave a space empty to show nothing there: no wrapper element is printed.

SFW and NSFW banners ​

There are 19 ad spaces, and each has a SFW and a NSFW version, for 38 in all. The NSFW versions are listed under the groups marked [NSFW], and their IDs end in _nsfw, for example banner_home_after_cover_nsfw.

Chevereto picks the version based on the content shown on the page:

PageNSFW banner shown when
Image pageThe image is flagged as NSFW
Listings, homepage, profilesAt least one image in the current page is flagged NSFW
Album listingsNever, album listings always use the SFW banner

Leave a NSFW space empty if you don't want to show banners next to NSFW content. Many ad networks don't allow their ads on adult content, so check their policy before reusing the same code in both versions.

Ad spaces ​

Homepage ​

Ad spaceBanner ID
Before main titlebanner_home_before_title
After call to actionbanner_home_after_cta
After coverbanner_home_after_cover
After listingbanner_home_after_listing

Listings ​

Shown in every listing with pagination: explore, search, user profiles, albums and others.

Ad spaceBanner ID
Before paginationbanner_listing_before_pagination
After paginationbanner_listing_after_pagination

Content ​

Shown in the tabs below the image viewer.

Ad spaceBanner ID
Tab about columnbanner_content_tab-about_column
Before commentsbanner_content_before_comments

Image page ​

Ad spaceBanner ID
Inside viewer topbanner_image_image-viewer_top
Inside viewer footbanner_image_image-viewer_foot
After image viewerbanner_image_after_image-viewer
Before headerbanner_image_before_header
After headerbanner_image_after_header
Footerbanner_image_footer

Banners in the image page and content tabs aren't shown for images pending moderation, except After image viewer.

Album page ​

Ad spaceBanner ID
Before headerbanner_album_before_header
After headerbanner_album_after_header

User profile page ​

Ad spaceBanner ID
After topbanner_user_after_top
Before listingbanner_user_before_listing

Explore page ​

Ad spaceBanner ID
After topbanner_explore_after_top

Released under the Apache-2.0 License.