Our Argento template can be your powerful tool in building custom themes in Magento 2. Creating an Argento sub-theme gives you unlimited possibilities in theme customization. We don’t say about adding custom CSS, but we focus your attention on changing such things as Layout instructions, Template files, Javascripts, CSS styles.
Using the Argento sub-theme, you are doing a favor for your site, because that would mean all Argento files left untouched. It will be safe for you to unpack the new Argento version over the old one without losing your modifications.
Let us show how to create a custom theme. You can use our instructions at the Custom Argento Themes Boilerplate free repository. And here we’d like to help you create Magento 2 custom themes manually.
Let’s create Local/argento-[essence|flat|pure2|mall|stripes|luxury|force|home]-custom theme based on Swissup/argento-[essence|flat|pure2|mall|stripes|luxury|force|home]. This step-by-step instruction implies that you’ll replace [essence|flat|pure2|mall|stripes|luxury|force|home] entries with theme name, you’d like to use.
1/ Create a folder for your new theme:
app/design/frontend/Local/argento-[essence|flat|pure2|mall|stripes|luxury|force|home]-custom
2/Create the following files inside the new theme directory, to register your theme in Magento:
{
"name": "local/argento-[essence|flat|pure2|mall|stripes|luxury|force|home]-custom",
"type": "magento2-theme",
"version": "1.0.0",
"require": {
"swissup/theme-frontend-argento-[essence|flat|pure2|mall|stripes|luxury|force|home]": "*"
},
"autoload": {
"files": [ "registration.php" ]
}
}
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Argento Custom by Local</title>
<parent>Swissup/argento-[essence|flat|pure2|mall|stripes|luxury|force|home]</parent>
</theme>
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::THEME,
'frontend/Local/argento-[essence|flat|pure2|mall|stripes|luxury|force|home]-custom',
__DIR__
);
We also offer you to try one faster way to create a custom theme.
Run the command
php bin/magento swissup:theme:create <name> <parent-theme-name> --css
In the Name value you have to put the theme name you want to create (Local/argento-stripes). In the Parent value you have to put the parent short theme name (stripes).
The--CSS value is optional. In case you use it, you will receive the custom CSS file. For instance, php bin/magento swissup:theme:create argento-stripes-custom stripes --css will generate Local/argento-stripes-custom theme based on Argento Stripes design (swissup/theme-frontend-argento-stripes).
3/ Log in to Magento backend and navigate to Content > Themes. You might see a new theme in the list. In case you don’t, please clear your store cache.
4/ Run the following commands in the terminal to deploy static content files:
bin/magento setup:static-content:deploy
5/That’s it. Now you can apply the new custom theme to your store. Let us help you to do that.
We use necessary cookies to make our site work. We'd also like to set optional cookies to help us improve it. We won't set optional cookies unless you enable them. Using this tool will set a cookie on your device to remember your preferences.
Necessary cookies enable core functionality such as security, network management, and accessibility. You may disable these by changing your browser settings, but this may affect how the website functions.
| Name | Description |
|---|---|
| PHPSESSID | Preserves the visitor's session state across page requests. |
| form_key | Protects visitor's data from Cross-Site Request Forgery Attacks. |
| guest-view | Stores the Order ID that guest shoppers use to retrieve their order status. Used in “Orders and Returns” widgets. |
| login_redirect | Preserves the destination page the customer was loading before being directed to log in. |
| mage-banners-cache-storage | Stores banner content locally to improve performance. |
| mage-cache-sessid | The value of this cookie triggers the cleanup of local cache storage. |
| mage-cache-storage | Local storage of visitor-specific content that enables ecommerce functions. |
| mage-cache-storage-section-invalidation | Forces local storage of specific content sections that should be invalidated. |
| mage-messages | Tracks error messages and other notifications that are shown to the user, such as the cookie consent message, and various error messages. The message is deleted from the cookie after it is shown to the shopper. |
| private_content_version | Appends a random, unique number and time to pages with customer content to prevent them from being cached on the server. |
| section_data_ids | Stores customer-specific information related to shopper-initiated actions such as display wish list, checkout information, etc. |
| user_allowed_save_cookie, cookie_consent |
Stores the user's cookie consent state for the current domain. |
| X-Magento-Vary | Configuration setting that improves performance when using Varnish static content caching. |
| _gcl_au | |
| __stripe_mid | |
| __stripe_sid |
Preference cookies are used to store settings and information that changes the website look and functionality.
| Name | Description |
|---|---|
| easybanner | Preserves the visitor's preferences and stats regarding shown popup blocks. |
| store | Remembers the user's selected language version of a website. |
Marketing cookies help us provide our visitors with relevant content, browsing history, and product recommendations.
| Name | Description |
|---|---|
| product_data_storage | Stores configuration for product data related to Recently Viewed / Compared Products. |
| recently_compared_product | Stores product IDs of recently compared products. |
| recently_compared_product_previous | Stores product IDs of previously compared products for easy navigation. |
| recently_viewed_product | Stores product IDs of recently viewed products for easy navigation. |
| recently_viewed_product_previous | Stores product IDs of recently previously viewed products for easy navigation. |
| _fbp | This cookie is installed by Facebook to store and track visits across websites. |
| _gac_UA-38683016-1 | |
| _gcl_aw | |
| _gcl_gs |
Analytics cookies help us understand how our visitors interact with the website. It helps us understand the number of visitors, where the visitors are coming from, and the pages they navigate. The cookies collect this data and are reported anonymously.
| Name | Description |
|---|---|
| add_to_cart, remove_from_cart |
Used by Google Tag Manager. Captures the product SKU, name, price and quantity added or removed from the cart, and makes the information available for future integration by third-party scripts. |
| dc_gtm_* | Throttles request rate when Google Analytics is deployed with Google Tag Manager. |
| _fbc | |
| _ga, _gat, _gid, _ga_*, _gat_* |
This cookie is installed by Google Analytics. They are used to collect information about how visitors use our website. We use the information to compile reports and to help us improve the website. The cookies collect information in a way that does not directly identify anyone. |