Our brands

Guide Ves Evolution Magento2

Getting Started

Getting Started

M2themes comes with modern, elegant, professional product-oriented design, the theme lets you showcase your items at it’s best.

Are you seeking theme for magento 2? M2themes is designed for magento 2 with tons of improvements in performance and scales. Also, it delivers engaging and rich user experience on any devices. Thus customer can shop anytime anywhere

M2themes is one of our responsive magento 2 themes. This magento 2 theme created with new magento 2 UI and integrate bootstrap 3.3.6 layout components. Also, it is inherited from magento 2 blank theme

Advanced Guide: Developer Guide For Magento 2

Compatibility:

M2themes is fully compatible with Magento Community Edition 2.0.0, 2.0.2, 2.0.4, 2.0.6, 2.0.7, 2.1.0, 2.1.x

Demo Link: http://demo4coder.com/m2themes/landing

Purchase It Now

Theme Configuration

Child Theme Configuration

Please create child theme folder in app/design/frontend/company_name/theme_name
ex:

etc/view.xml :-This file is used to specify product image dimensions, thumbnails etc.

Magento_Theme :- This directory is used to override existing Magento’s theme files.

Magento_Theme/layout/default.xml :- By default Magento2 assumes that your theme’s logo file should be: /web/media/logo.svg If you want some other file for logo, then you must declare it in default.xml file.This file is also used to override default theme’s settings.

media/preview.png :- The preview of current theme.

web :- This directory contains all the theme’s static data like images, styles, javascript, fonts etc.

registration.php :- This file is required to register our theme to Magento2 system.

theme.xml :- This is a compulsory file that defines our theme name, its parent and optionally theme’s preview image.

composer.json :- If you plan to distribute the theme using a composer package will make it easier for people to install the custom theme, you can specify any required packages in which composer can install / update for the user to ensure the theme installs correctly.Creating theme filesLet us now create our files one by one.

Creating theme files

Let us now create our files one by one.

theme.xml ( app/design/frontend/M2themes/m2themes_child/theme.xml )

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
   <title>M2themes Child</title> <!-- your theme's name -->
   <parent>Magento/blank</parent> <!-- the parent theme -->
   <media>
        <preview_image>media/preview.jpg</preview_image> <!-- theme's preview image -->
   </media>
</theme>

registration.php ( app/design/frontend/M2themes/m2theme_child/registration.php )

<?php
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::THEME,
    'frontend/M2themes/m2themes_child',
    __DIR__
);

composer.json ( app/design/frontend/M2themes/m2theme_child/composer.json )

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

Please go to Admin -> Content -> Configuration

Then open Design Configuration -> choose M2themes child

* Important: After you choose new theme or new theme child, you need reindex data and run command below via SSH:

php bin/magento setup:static-content:deploy

Homepage Configuration

M2themes have 3 child theme with 18+ homepage built by Ves Page Builder module.

 

#Overview:

To configure the default home page for your store, go to Store > Configuration > General > Web > Default Pages tab, select the desired page in the CMS Home Page field and save configuration.

Go to back-end > Ves Pagebuilder > Manager page profile > Edit profile name “M2themes Homepage Default

In the back-end, we used the widget, namely “Content Carousel” on page builder profile. To change image slider, please Go to back-end > Ves Pagebuilder > Manager page profile > Choose to edit desired homepage > Edit “Content Carousel” widget.

  1. M2themes Default Slider 1
  2. M2themes Default Slider 2

*Note: M2themes Slider are using CMS static block. Hence, if you want to change image slider, please go to Admin Panel > Content > Blocks > Choose Desired CMS Static Block you want to edit.

ex: content for “M2themes Default Slider 1“:

<p><a href="{{store url="ariel-roll-sleeve-sweatshirt-xs-red.html"}}"><img src="{{media url="wysiwyg/m2themes/slider1.jpg"}}" alt="" /></a></p>
<div class="slider-content a-left" style="left: 8%; top: 18%;">
<p style="letter-spacing: 4px; margin-bottom: 10px; color: #aaaaaa;">MICROSOFT SURFACE 2</p>
<h3>Surface with</h3>
<h3>Window 8 Pro</h3>
<div class="starting hidden-xs" style="border-left: 3px solid #f28a52; line-height: 16px; padding: 0px 10px;">
<p style="color: #000000; margin-bottom: 12px;">Starting at</p>
<p style="color: #f28a52; font-size: 30px;">$460.00</p>
</div>
<a class="btn hidden-xs" href="{{store url="ariel-roll-sleeve-sweatshirt-xs-red.html"}}">DETAIL</a></div>

 

+ In the back-end, we used the widget, namely “Single Image” on page builder profile

+ You can edit widget and change image in this popup by choosing “Edit” Button


in Shortcode you can see:

{{widget type="Ves\BaseWidget\Block\Widget\Image" file="wysiwyg/m2themes/h1_banner1.jpg" image_size="100%" alignment="center" popup_type="colorbox" link="smartphones.html"}}

Config in admin:

Add the class prefix for row setting

+ How To Config In The Backend

>> In the back-end, we used the widget  “Single image” to build it


How To Config in the back-end :

Add class Prefix for this block:

 

Create Source for Tab and add title you want to show:

 

Back-end Setting:


add class for block Products List style2:

 

Back-end Setting:

 

add class prefix for row setting:

 

 

Back-end Setting:

 

add class prefix for column setting:

 

Back-end Setting:

 

add class prefix for row setting:

 

add class prefix for column setting:

 

and widget option:

Header Configuration

M2theme – evolution provides 3 header styles, you can choose one of them here.

#Header1:

#header2:

#header3:

>> How To Config Other Header for storeview

To Config Other Header, Go to Admin Panel >> VES THEMESETTING >> Header >> General Settings >> Choose Your Header Layout

  1. Default: default.phtml (header default)
  2. Default1: default1.phtml (header 1)
  3. Default2: default2.phtml (header 2)

Code html at this path file

app\design\frontend\M2themes\evolution\Ves_Themesettings\templates\header\default.phtml

To change Logo, Go to Admin Panel > Content > Configuration > Edit theme_name

After that, you need to open “Header” Tab > Upload your logo(GIF, PNG, JPG, or SVG file type) with the uploader

Footer Profiles

Footer manager:

Admin -> Ves Pagebuilder -> Manage Block Profile:

#Footer1:

Design in: Ves Pagebuilder -> Manage Block Profile -> edit item block builder “M2theme Footer”:

#Footer2:

Design in: Ves Pagebuilder -> Manage Block Profile -> edit item block builder “M2theme Footer2”:

#Footer3:

Design in: Ves Pagebuilder -> Manage Block Profile -> edit item block builder “M2theme Footer3”:

#Footer4:

Design in: Ves Pagebuilder -> Manage Block Profile -> edit item block builder “M2theme Footer4”:

How To Choose footer profiles

Go to back-end > Ves Themesetting > Footer > enter your block

Admin Theme Settings

Config Generals

In this tab, you are able to:

– Choose maximum page width on dropdown or change value input

– Choose skin color store view

– Choose director support LTR or RTL Languages

– Enable or disable panel tool

– Config body background, padding

– Add custom google font for body

– Config color text body, text link, text link hover

– Config button color, background and hover, focus

 

Please Go to Admin Panel > Ves ThemeSettings > General

M2themes provides Custom Page Width (960px, 1024 px, 1280px, 1360px, 1440px, 1680px,…), and Maximum Page Width mode, you can choose the one that you prefer. You can apply this option to any home versions.

We created 20+ skins in M2themes:  You can view it in folder:

..\M2themes\evolution\Ves_Themesettings\web\css\skins\

Config header

1. General tab: Choose Header Layout : “Default”

2. Top Link tab: Show link my account, sign in, create an account, and custom link

You can add custom top link.

 

3. Search tab:
– Enable: Yes or No
– Custom style
– Add maximum width of search box
– Change format button search

 

4. Language Switcher and Currency Switcher tab:

This block setting group custom code in this file

app\design\frontend\M2themes\evolution\Magento_Theme\templates\html\setting.phtml

How it is show on front-end:
5. Sticky Header tab:

Config “Scroll To Fixed” header ( keep header when scrolling window). You can choose all sticky elements (all header )or choose specify element

6. Top cart tab:

– There are 4 options for you to show Top Cart, you can choose to show what you want

  • Text Only
  • Icon Class Only
  • Text + Icon Class
  • Icon Class + Text

Config Footer

M2themes allows you to config various footer sections: Footer top, Footer center, Footer Bottom

app\design\frontend\M2themes\evolution\Ves_Themesettings\layout\default.xml

 

<!-- Footer Container -->
    <referenceContainer name="footer-container">
        <container name="footer" as="footer" label="Page Footer" htmlTag="div" htmlClass="ves-footer">
            <container name="footer-top" label="Footer Top" htmlTag="div" htmlClass="footer-top">
                <block class="Ves\Themesettings\Block\Html\Footer" name="ves.footer.top" template="Ves_Themesettings::html/footer/footer-top.phtml"/>
            </container>
            <container name="footer-center" label="Footer Center" htmlTag="div" htmlClass="footer-center" after="footer-top">
                <block class="Ves\Themesettings\Block\Html\Footer" name="ves.footer.center" template="Ves_Themesettings::html/footer/footer-center.phtml"/>
            </container>
            <container name="footer-bottom" label="Footer Bottom" htmlTag="div" htmlClass="footer-bottom" after="footer-center">
                <block class="Ves\Themesettings\Block\Html\Footer" name="ves.footer.bottom" template="Ves_Themesettings::html/footer/footer-bottom.phtml"/>
            </container>
            <remove name="form.subscribe"/>
            <block class="Magento\Framework\View\Element\Template" name="report.bugs" template="Magento_Theme::html/bugreport.phtml" />
        </container>
    </referenceContainer>
<!-- End Footer Container -->

 

You can configure the options related to the footer section in Ves Themesettings > Footer

– General Settings:

+ You can custom style if use value Yes, change text color and link color on footer

+ You can style background color or set background image, patent for footer by option “Outer Container”

+ You can enable or disable text copy right, and you can custom text copy-right at option “Copyright”

 

– Footer Top setting:

+ You can enable or disable position

+ You can choose static block or custom html redirect on text editor

+ You can custom style if use value Yes: Text color, Link color, Link hover color

+ You can style “Outer Container”, ” Inner Content” – Main content at here

 

– For Footer Center Setting, Footer Bottom setting, you can config it like Footer Top setting. But in case the theme do NOT have, please set ” Enable Footer Center” or ” Enable Footer Bottom” to :NO

 

Config Category page

M2themes provides several types of category layout. You can choose one as your choice.+ Go to the Admin Panel > Products > Inventory > Categories.

+ Select “Default Category” in the treeview area at the left side.

+ Click “Add Subcategory” button, then input Category name, Description, etc. Notes: set the options “Is Active” to “Yes”, “Include in Navigation Menu” to “Yes” in “General Information” tab.

+ If you want to display banner image, please set image in “Content” tab: upload image

 

+ In “Display Settings” tab, default Display Mode: “Product Only” but in order to display banner with static block, please set “Display Mode” to “Static block and products” and CMS Block

 

+ You can change layout category on Design tab:

 

+ Change number column product in each layout design(default is 3 product items per row):

# Choose 4 product items per row:

Back-end setting:

you insert code in Layout Update XML

	<referenceBlock name="category.products.list">
        <action method="setTemplate">
            <argument name="template" xsi:type="string">Magento_Catalog::product/list_col4.phtml</argument>
        </action>
	</referenceBlock>

# Choose 5 product items per row:

	<referenceBlock name="category.products.list">
        <action method="setTemplate">
            <argument name="template" xsi:type="string">Magento_Catalog::product/list_col5.phtml</argument>
        </action>
	</referenceBlock>

+ Click “Save Category” button, to update your changes.

Go to Admin Panel > Ves Themesetting > Category page:

1. General tab:

– Show name, description, image of category

– Show Top toolbar and Bottom Toolbar

2. Product settings tab:

– Show element for each product item:

+ Config to select element of each product: name, description, price, review, lable sale or new, ect

+ Config format button add to cart, quickview, add to wishlist, add to compare

+ Config product image: image size, swap image

Config Product View Page

– Other elements:

+ Config enable / disable elements by change value Yes / No

+ Specify you can change position of thumnail slider: horizonal or vetical, Top or bottom

– Config show tab- Custom tab

+ Tab By Product Attribute Code

+ Tab By CMS Block

+ Tab By Static Html Content

– Config Related Products: number items and item show on responsive

Back-end Setting:

Frontend result:

– Config Upsell product:

Back-end Setting:

Frontend result:

Config Contact Page

Link page: demo4coder.com/m2themes/contact

How To config: Go To Ves Themesetting > Contact page:

 

+ Contact Form tab:

 

+ Google map tab:

– You can change address, Longitude, Latitude

– You can add contact information : email, address, telephone, fax, custom html about us, etc…

 

+ Edit Form :

You can edit form at this path file:

app\design\frontend\M2themes\evolution\Magento_Contact\templates\form.phtml

 

 

 

Config Cart Page

Config in admin panel > Ves Themesetting > Cart page:

 

+ Config number product for cross-sell on cart page:

Front-end showing

Note: config show / hidden element (name, price, review…) as related, upsell

 

Blocks Diagram

Static Blocks Diagram

This is all CMS static blocks we are using on the M2themes.

To Open Cms Static Blocks, Go To Admin Panel > Content > Blocks

 

1. “M2themes Default Slider 1”, “M2themes Home2 Slider 2”, “M2themes Home3 Slider 1” are used in widget “Content Carousel” on pagebuilder profile

<p><a href="{{store url="ariel-roll-sleeve-sweatshirt-xs-red.html"}}"><img src="{{media url="wysiwyg/m2themes/slider1.jpg"}}" alt="" /></a></p>
<div class="slider-content a-left" style="left: 8%; top: 18%;">
    <p style="letter-spacing: 4px; margin-bottom: 10px; color: #aaaaaa;">MICROSOFT SURFACE 2</p>
    <h3>Surface with</h3>
    <h3>Window 8 Pro</h3>
    <div class="starting hidden-xs" style="border-left: 3px solid #f28a52; line-height: 16px; padding: 0px 10px;">
    <p style="color: #000000; margin-bottom: 12px;">Starting at</p>
    <p style="color: #f28a52; font-size: 30px;">$460.00</p>
</div>  
<a class="btn hidden-xs" href="{{store url="ariel-roll-sleeve-sweatshirt-xs-red.html"}}">DETAIL</a></div>

 

2. M2themes Promotion Top (show in header3)

<div class="promotion-top">
    <ul>
        <li><em class="fa fa-phone-square">&nbsp;</em>Call support free: <br /><span>1800 - 123 456 78</span></li>
        <li><em class="fa fa-envelope-o">&nbsp;</em>Email us: <br /><span>info@company.com</span></li>
        <li><em class="fa fa-clock-o">&nbsp;</em>Business hours: <br /><span>Mon-Sat: 8.00 - 18.00</span></li>
    </ul>
</div>

 

3. M2themes Call Us (show in header)

 

<ul>
    <li><em class="fa fa-phone-square">&nbsp;</em>Call support free: <span>1800 - 123 456 78</span></li>
    <li><em class="fa fa-envelope-o">&nbsp;</em>info@company.com</li>
</ul>

4. Sidebar Tag (Show in sidebar)

<div class="block tags-link">
    <div class="block-title"><span>Product Tags</span></div>
    <div class="block-content">
        <ul>
            <li><a href="{{store url="women.html"}}">black</a></li>
            <li><a href="{{store url="men.html"}}">sport bag</a></li>
            <li><a href="{{store url="women.html"}}">blackpack bag</a></li>
            <li><a href="{{store url="men.html"}}">white</a></li>
            <li><a href="{{store url="women.html"}}">snapback</a></li>
            <li><a href="{{store url="gear.html"}}">hat</a></li>
            <li><a href="{{store url="women.html"}}">yeezi</a></li>
            <li><a href="{{store url="men.html"}}">men</a></li>
            <li><a href="{{store url="gear.html"}}">women</a></li>
            <li><a href="{{store url="women.html"}}">shoes</a></li>
            <li><a href="{{store url="men.html"}}">T-shirt</a></li>
            <li><a href="{{store url="gear.html"}}">Glasses</a></li>
            <li><a href="{{store url="women.html"}}">Dress</a></li>
        </ul>
    </div>
</div>

 

5. Sidebar Banner (Show in categories sidebar)

 

<div class="widget-images block"><a href="{{store url="smartphones.html"}}"><img src="{{media url="wysiwyg/m2themes/categories_banner.jpg"}}" alt="" /></a></div>

 

6. Block Categories Bottom (Show in categories page)

 

<div>{{widget type="Ves\PageBuilder\Block\Widget\Builder" block_id="12" disable_wrapper="1"}}</div>

 

Extensions

Blog module

1. How To Change URL link:

Go to Admin Panel > Ves Blog > Settings > Configuration > General Settings

2. Config show/hidden elements in post page (detail post)

Show on frontend:

 

3. Config show/hidden elements in Category page

Show on frontend

 

4. How To Change page layout for each blog category

Go to Admin Panel > Ves Blog > Categories > Category Management > Edit 1 category or add new category

On Design tab : you can choose page layout for category

 

5. How To Custom Category Blog Page: Show grid, list or Masonry View Mode

Go to Admin Panel > Ves Blog > Categories > Category Management > Edit 1 category or add new category > Design tab:

 

Megamenu

M2themes includes the fantastic Megamenu in an additional module called Ves MegaMenu. The Megamenu module comes with a custom admin interface through which you can create powerfull Menu. No coding is required. Follow these steps to create a module:

 

Front-end:

Back-end:

– Create new Menu item:

– General Information:

– Header:

– Left Block:

– Main content:

– Right block:

– Bottom block:

– Custom design for menu item:

– Dynamic Content Tab:

Front-end showing:

Back-end config:


Config menu item dynamic:

FAQ

General Questions

Top
Do NOT follow this link or you will be banned from the site!