Advertisement
The Advertisement option in HTFY Publisher provides a complete ad management system designed to help publishers seamlessly integrate and control ads across their website. Whether you're using Google AdSense or other ad networks, HTFY Publisher makes ad placement efficient, customizable, and SEO-safe.
Key Features
🔹 Easy Ad Code Integration
Add your ad scripts (like Google AdSense) into the system and deploy them instantly across the site. You only need to paste the ad code once.
🔹 Auto Ad Insertion
Ads can be automatically injected:
Before or after specific HTML elements (e.g.,
<h2>
,<p>
)Within articles, ensuring strategic visibility
With default size support (currently optimized for 300x250 ads)
🔹 Lazy Load Ads
Ads load only when they enter the user's viewport, improving page speed and user experience.
🔹 AdBlock Detection
Detects users with ad blockers enabled and can show a custom popup or message asking them to disable the blocker.
🔹 One-Click Control
Enable/Disable all ads instantly from the dashboard
Apply ads to all published articles and future posts with a single click
How to Use
Go to the Advertisement section in your dashboard.
Paste your ad script (e.g., AdSense code) into the provided input field.
Choose where to apply ads (before/after specific elements).
Enable Lazy Load and AdBlock Detection if needed.
Click Apply to activate ads across your site.
Benefits
Improves ad performance without affecting page load speed
Full control over how and where ads appear
Compatible with SEO and responsive design
No coding required – user-friendly interface
Ad Not Showing? Here's What You Should Check
If you've applied ads through the HTFY Publisher Advertisement panel but they're not appearing on your pages, there are a few key things to verify:
Make sure the following script is included in the Footer section of your theme via Theme Editor:
<script src="/ht-admin/Advertisement/main-script-apply-ads.js"></script>
This script is required for displaying ads. Without it, ads will not load on any page, even if configured correctly.
Can I integrate Google AdSense with HTFY Publisher?
Yes, HTFY Publisher fully supports Google AdSense. You can paste your AdSense ad code into the Advertisement section, and it will automatically apply the ads to all articles and posts.