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:
<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:
| Page | NSFW banner shown when |
|---|---|
| Image page | The image is flagged as NSFW |
| Listings, homepage, profiles | At least one image in the current page is flagged NSFW |
| Album listings | Never, 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 space | Banner ID |
|---|---|
| Before main title | banner_home_before_title |
| After call to action | banner_home_after_cta |
| After cover | banner_home_after_cover |
| After listing | banner_home_after_listing |
Listings
Shown in every listing with pagination: explore, search, user profiles, albums and others.
| Ad space | Banner ID |
|---|---|
| Before pagination | banner_listing_before_pagination |
| After pagination | banner_listing_after_pagination |
Content
Shown in the tabs below the image viewer.
| Ad space | Banner ID |
|---|---|
| Tab about column | banner_content_tab-about_column |
| Before comments | banner_content_before_comments |
Image page
| Ad space | Banner ID |
|---|---|
| Inside viewer top | banner_image_image-viewer_top |
| Inside viewer foot | banner_image_image-viewer_foot |
| After image viewer | banner_image_after_image-viewer |
| Before header | banner_image_before_header |
| After header | banner_image_after_header |
| Footer | banner_image_footer |
Banners in the image page and content tabs aren't shown for images pending moderation, except After image viewer.
Album page
| Ad space | Banner ID |
|---|---|
| Before header | banner_album_before_header |
| After header | banner_album_after_header |
User profile page
| Ad space | Banner ID |
|---|---|
| After top | banner_user_after_top |
| Before listing | banner_user_before_listing |
Explore page
| Ad space | Banner ID |
|---|---|
| After top | banner_explore_after_top |
