Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Note

Before directly overriding the CSS, check to see if the look and feel can be adjusted by Fine Tuning the Theme.

...

 About

This document explains how to properly override the theme CSS.  Following this technique will make sure that you changes are not overwritten during a theme upgrade.  First navigate to the File Manager section of your StoreFront as show below.

Image Removed

Click on the themes folders.

Image Removed

Click on the current theme which is highlighted in light green.  In this case it's the MrTeas folder.

Image Removed

Drill down into the assets folder and then css folder Appearance and then CSS as shown below.

Image Removed

Image Removed

Click on the override.css file located within the css folder.  

...

Navigation to CSS Override

Image Added

This will open up an the editor as shown below.  Place your style overrides into this file and then save.

Image RemovedImage Added

After making an edit to your CSS, make sure to use the reload icon on the admin bar of your StoreFront.  This forces the browser to refresh all the assets on your page including the override CSS.

Example CSS to Hide the Continue Shopping Button

First Step - Identify the "ContinueShopping" Element ID

Using the Chrome Browsers built in developer tools, we will take a buy link and paste it into our browser to load the shopping cart page, then we right-click on the "Continue shopping" button on the page and choose "Inspect" from the right-click menu. We will see the element ID "continueShopping" appear like this:

Image Added

So we will construct CSS to hide the element:

Code Block
languagegroovy
#continueShopping { 
      display: none;
}

Helpful Links

https://www.w3schools.com/css/css_display_visibility.asp