• 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.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Add custom header code

imgamd85

Chevereto Member
Hi,

I would like to use pop ads. And they have advised to use some where between <head> and </head>.

dono how to navigate. Kindly help

Thanks
 
Hi,

navigated to --> app/themes/Peafowl/custom_hooks there are two files head.sample.php and header.sample.php.

dono how to proceed from here
 
There is a file named use_this_to_customize.txt and it reads:

Code:
You can use these files to inject/add any code you want in this theme.

By default this file includes examples like "footer.sample.php" which must be renamed to "footer.php" to work properly.
The same goes for "header.sample.php" -> "header.php", "style.sample.css" -> "style.css", etc.
Basically, the structure is file.sample.ext so you must remove ".sample" from the filename

footer.sample.php    -> Bundled example
footer.php        -> Real file to be included

Cheers,
Rodolfo.
 
Go to dashboard > settings > theme and place your code in "Custom JS" code section

remove starting and ending <script> tags
 
I have placed the code in that file. but still it is not working. I have renamed header.sample.php tp header.php.

I even tried pasting the code to custom css. Dint work.

Kindly help.

Here is the code:
<!-- PopAds.net Popunder Code for penaye.com -->
<script type="text/javascript" data-cfasync="false">
var _pop = _pop || [];
_pop.push(['siteId', 1389691]);
_pop.push(['minBid', 0.000000]);
_pop.push(['popundersPerIP', 0]);
_pop.push(['delayBetween', 0]);
_pop.push(['default', false]);
_pop.push(['defaultPerDay', 0]);
_pop.push(['topmostLayer', false]);
(function() {
var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
var s = document.getElementsByTagName('script')[0];
pa.src = '//c1.popads.net/pop.js';
pa.onerror = function() {
var sa = document.createElement('script'); sa.type = 'text/javascript'; sa.async = true;
sa.src = '//c2.popads.net/pop.js';
s.parentNode.insertBefore(sa, s);
};
s.parentNode.insertBefore(pa, s);
})();
</script>
<!-- PopAds.net Popunder Code End -->
 

Attachments

  • code.png
    code.png
    122.4 KB · Views: 6
i placed entire code in custom css and the ad network says we are able to see the code. But am not able to see any pop up. Am not using any ad blocker /vpn.
 

Attachments

  • upload_2016-7-16_10-15-54.png
    upload_2016-7-16_10-15-54.png
    207.1 KB · Views: 7
Actually you can achieve what you need in several ways:

1. custom_hooks
2. custom "JS" code (Dashboard)
3. Banners
 
Back
Top