Please explain both question in detail:

How to add slider in home page. I want to keep homepage banner slider, so please suggest for banner slider in magento 2.

How to create custom theme in magento. How to create custom theme in magento 2, give me list of files and step to create theme.


1 Answer 1


Homepage Banner Slider: Find Banner slider from magento marketplace from link here Marketplace site,

Theme create:

You can get reference from magento docs, Create Magento theme

Theme structure for magento 2:

├── <Vendorname>/
│   │   ├── <themename>/  
│   │   │   ├── ...web
│   │   │   │   ├── ...css
│   │   │   │   ├── ...images
│   │   │   │   ├── ...js
│   │   │   ├── registration.php
│   │   │   ├── theme.xml

You have to just create theme inside folder app/design/frontend/Vendorname/themename

You have to get files from core theme blank or luma and set your parent theme inside your theme file.

You have to copy files and folder from magento2/vendor/magento/theme-frontend-luma or magento2/vendor/magento/theme-frontend-blank based on your parent theme.

Required files is, registration.php file,

 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.



keep below code,

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>Custom Theme</title>

Get web folder from parent theme to your current theme.

After Getting required files and folder, Run command through cmd,

First run command for deployment,

php bin/magento setup:static-content:deploy

Remove var folder from root.

Now you have to set theme from Magento admin panel.

Go To admin panel left side menu,

Content -> Design -> Configuration

Click on Your main website store link and set your theme from here.

  • It's not showing in Content -> Design -> Configuration Dropdown
    – Jackson
    Commented Sep 27, 2016 at 10:59
  • please let me know your magneto version, above version is realted to magento2.1.* Commented Sep 27, 2016 at 11:00
  • Yes it's Magento 2 CE Version 2.1.0
    – Jackson
    Commented Sep 27, 2016 at 11:01
  • When u run static-content:deploy command. It should display my new theme which as parent as Luma theme or not? Because it's not displaying currently
    – Jackson
    Commented Sep 27, 2016 at 11:03
  • you have to set theme from content -> design -> configuration Commented Sep 27, 2016 at 11:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.