• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

How to insert Google ads to the pages (images)

maordany

Chevereto Member
I want to add to each page (image page) Google ads Above and below each picture. How can I do this?

Where to add the code of Google's ads To get an advertisement under the picture and above the picture.
 
If you want to do it in the viewer or the shortURL viewer you have to include this code in the viewer.php and shorturl.php template files located in content/themes/<Your Theme>/
 
I need help adding the code.

I do not understand where to add the code that Google ads gave me.

Everywhere I add the code (on viewer.php and shorturl.php) The advertisement adjacent to the right (Hebrew) side of the page and not in the center of the page And the ads hides the picture (The advertisement is on the Picture).
 
Because you have to do html+css, if you want to place a ad of say 500px width, the code should be:
HTML:
<div style="width: 500px; margin: 0 auto;">{ad code}</div>
 
Back
Top