Magento – How to install a New theme in magento 2.0.2

magento2theme

I have worked in magento 1.8.Now I have installed magento 2.0.2 in localhost.I have one theme named Ultimo which i want to apply in magento 2.0.2.This theme is not from magentocommerce.com.

I cant see My theme name here.

I cant see My theme name here.

Then How to select theme from here? What are the steps to apply a theme?

I have tried all the steps from http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/theme-create.html more than one time.But still not working.

Here are all my files.

theme.xml

Path : D:/wamp/www/testsite/app/design/frontend/Magento/ultimo/theme.xml

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>Ultimo</title>
    <parent>Magento/ultimo</parent>
    <media>
        <preview_image>media/preview.jpg</preview_image>
    </media>
</theme>

composer.json

Path: D:/wamp/www/testsite/app/design/frontend/Magento/ultimo/composer.json

{
    "name": "magento/ultimo",
    "description": "N/A",
    "require": {
        "php": "~5.5.0|~5.6.0|~7.0.0",
        "magento/theme-frontend-luma": "100.0.*",
        "magento/framework": "100.0.*"
    },
    "type": "magento2-theme",
    "version": "100.0.2",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "autoload": {
        "files": [
            "registration.php"
        ]
    }
}   

registration.php

Path : Path: D:/wamp/www/testsite/app/design/frontend/Magento/ultimo/registration.php

<?php
/**
 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::THEME,
    'frontend/Magento/ultimo',
    __DIR__
);?>

Can anyone help me ?

Best Answer

Copy the Ultimo files to directory and run the Commands below in the order given consecutively:

  1. php bin/magento module:enable Infortis_Base Infortis_Brands Infortis_Cgen Infortis_Dataporter Infortis_Infortis Infortis_Ultimo Infortis_UltraMegamenu Infortis_UltraSlideshow
  2. php bin/magento setup:upgrade
  3. php bin/magento setup:di:compile
  4. php bin/magento setup:static-content:deploy
Related Topic