How to apply and configure a Magento 2 theme in Admin

After you add your Magento 2 theme to the file system, you can apply it to your store. You apply a theme in Admin.

Apply a Magento 2 theme

To apply a theme:

  1. In Admin, go to Stores > Configuration > GeneralDesign.
  2. In the Store View drop-down field, select the store view where you want to apply the theme.
  3. On the Design Theme tab, select your newly created theme in the Design Theme drop-down.
  4. Click Save Config.
  5. If caching is enabled, clear the cache.
  6. To see your changes applied, reload the store front pages.

Add a design exception

Design exceptions enable you to specify an alternative theme for particular user-agents, instead of creating a separate store views for them. To add a design exception:

  1. In Admin, go to Stores > Configuration > General > Design.
  2. In the Scope drop-down field, select your website.
  3. On the Design Theme tab next to User-Agent Exceptions click Add.
  4. In the Search String box specify the user-agent using either normal strings or regular exceptions (PCRE). In the Design Theme drop-down list select the theme to be used for matching agent.
  5. Click Save Config.
  6. If caching is enabled, clear the cache.
  7. To see your changes applied, reload the store front pages.

You might want to set a permanent store logo, that displays on the store front no matter what theme is applied. To add a permanent theme-independent logo:

  1. In the Admin panel, go to Stores > Configuration > General > Design.
  2. In the Scope drop-down, select the store view.
  3. In the Design section of the General configuration, expand the Header tab.
  4. In the Logo Image field browse to the logo file saved in your file system.
  5. Upload the file.
  6. Click Save Config.
  7. If caching is enabled, clear the cache.
  8. To see your changes applied, reload the store front pages.

The logo you add here is stored in the /pub/media/logo/default/ directory.

To delete the permanent logo, go to the same location, select the check box next to the logo image, and click Delete.

Clear the cache

If caching is enabled in Magento Admin, you must clear the cache after you apply the theme, add a design exception, add a logo, and perform other tasks.

A system message notifies you that invalidated cache types must be refreshed.

  1. Click System > Cache Management.
  2. Clear the invalid cache types.
0 Likes
482 Views

You may also like

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter message.