Skip to content

razecodetech/magento2-banner-slider

Repository files navigation

Magento 2 Banner Slider

Latest Stable Version Total Downloads

How to install & upgrade Razecode_Banner

1. Install via composer (recommend)

We recommend you to install Razecode_Banner module via composer. It is easy to install, update and maintaince.

NOTE: Please use composer 2 to avoid any error while installing.

Run the following command in Magento 2 root folder.

1.1 Install

composer require razecode/banner
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

1.2 Upgrade

composer update razecode/banner
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Run compile if your store in Production mode:

php bin/magento setup:di:compile

2. Copy and paste

If you don't want to install via composer, you can use this way.

  • Download the latest version here
  • Extract master.zip file to app/code/Razecode/Banner ; You should create a folder path app/code/Razecode/Banner if not exist.
  • Go to Magento root folder and run upgrade command line to install Razecode_Banner:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Screenshot

homepage-banner-slider.png

Use below code to add Banner on CMS page and Static Block

1. Add banner manually

{{block class="Razecode\Banner\Block\BannerSlider" template="Razecode_Banner::bannerslider.phtml" name="razecode.banner"}}

2. Add banner from admin configuration

Go to:

Store > Configuration > Razecode > Banner Slider > General Configuration > Display Slider from layout xml file (default)

NOTE:

This extension requires base module.

Download Base Module latest version here