devhub/top-banner

Adds a Banner on top of every page to show campaigns, alerts etc.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:magento2-module

1.0.1 2023-04-14 14:35 UTC

This package is auto-updated.

Last update: 2025-05-14 21:57:37 UTC


README

Features

  • It displays an advertising section on the top of your web pages.
  • This advertising section provides a clickable link to open and explore more about the new features or sales/discounts/offers.
  • Once the user closes the top banner by clicking on the cross (X) button, then the top banner will not appear again on the same browser for users.
  • Admin can create new top banners to display on webpages and he can set their duration for advertisement.
  • Admin can change/create theme templates for top banners.

Installation

  1. Please run the following command
composer require devhub/top-banner
  1. Update the composer if required
composer update
  1. Enable module
php bin/magento module:enable DeveloperHub_Core
php bin/magento module:enable DeveloperHub_TopBanner
php bin/magento setup:upgrade
php bin/magento cache:clean
php bin/magento cache:flush

4.If your website is running in product mode the you need to deploy static content and then clear the cache

php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile

#####This extension is compatible with all the versions of Magento 2.3.* and 2.4.*. ###Tested on following instances: #####multiple instances i.e. 2.3.7-p3 and 2.4.5-p1