Skip to content

A lightweight and SEO-friendly WordPress plugin to display a customizable, fixed ad banner at the bottom of single blog posts.

License

Notifications You must be signed in to change notification settings

shahabsaalami/BlogBottom-Ad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌 BlogBottom Ad

A lightweight and SEO-friendly WordPress plugin to display a customizable, fixed ad banner at the bottom of single blog posts.


📸 Screenshots

Banner Example Settings Example

🚀 Features

  • Easy Setup: Simple settings page to configure your ad banner.
  • Media Library Integration: Select your banner image directly from the WordPress media library.
  • SEO-Friendly: Automatically uses the image's alt text for better accessibility and search engine optimization.
  • Session-Based Pop-up: The banner appears as a pop-up and can be closed by the user, but will reappear in a new browser session.
  • Lightweight: Minimal impact on your site's performance.

📦 Installation

  1. Download: Download the plugin as a ZIP file.
  2. Upload: In your WordPress dashboard, go to Plugins > Add New > Upload Plugin.
  3. Choose File: Select the downloaded ZIP file and click Install Now.
  4. Activate: Once installed, click Activate Plugin.

⚙️ Usage

  • Go to Settings > BlogBottom Ad after activation.
  • Enable Banner: Check the box to activate the ad banner.
  • Select Image: Choose an image from the media library (alt text will be used automatically).
  • Target Link URL: Enter the full URL where you want the banner to link.
  • Save Changes.

🛠️ Development

File Structure

  • blog-bottom-ad.php: Main plugin file containing core functionality, settings, and hooks.
  • assets/: Directory for front-end assets.
    • sab-style.css: Styles for the banner and close button.
    • sab-script.js: JavaScript logic for closing the banner and managing session state.

Hooks Used

  • admin_menu: Adds settings page to WordPress admin menu.
  • admin_enqueue_scripts: Enqueues media uploader script on settings page.
  • admin_init: Registers plugin settings and fields.
  • wp_enqueue_scripts: Enqueues front-end CSS and JS files.
  • wp_footer: Outputs the banner HTML in the site footer.

🇮🇷 پلاگین تبلیغاتی BlogBottom Ad

این یک پلاگین سبک و کاربردی برای وردپرس هست که به شما اجازه می‌ده یک بنر تبلیغاتی ثابت رو در پایین پست‌های وبلاگ‌تون نمایش بدید.

✨ ویژگی‌ها

  • نصب و راه‌اندازی آسان
  • انتخاب تصویر از کتابخانه رسانه وردپرس
  • سازگار با سئو (استفاده خودکار از alt text تصویر)
  • نمایش پاپ‌آپ با قابلیت بسته شدن توسط کاربر
  • بسیار سبک و بدون تاثیر منفی روی سرعت سایت

🚀 نصب

  1. فایل پلاگین رو به صورت ZIP دانلود کنید.
  2. در داشبورد وردپرس به افزونه‌ها > افزودن > بارگذاری افزونه برید.
  3. فایل ZIP رو انتخاب کنید و روی نصب کلیک کنید.
  4. بعد از نصب روی فعال‌سازی کلیک کنید.

⚙️ استفاده

  • از منوی Settings > BlogBottom Ad تنظیمات رو باز کنید.
  • بنر رو فعال کنید.
  • تصویر مورد نظر رو از کتابخانه انتخاب کنید.
  • لینک مقصد رو وارد کنید.
  • تغییرات رو ذخیره کنید.

🤝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


📜 License

This project is licensed under the MIT License.

About

A lightweight and SEO-friendly WordPress plugin to display a customizable, fixed ad banner at the bottom of single blog posts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published