Skip to main content
Skip table of contents

Custom CSS Tips for the Tracking Page Creator and Shopify Theme App

The Malomo Banner section within our Shopify Theme App includes a custom CSS section, which gives you flexibility to tweak the styling of your tracking block. Below are a few CSS tips on common edits.

Fixing long tracking numbers

When we get a long tracking number to display on the tracking block, sometimes that number runs off the screen on mobile. Add the following code snippet to the Custom CSS section when editing the Malomo banner. (This will only affect mobile, and will not impact the desktop experience).

CODE
@media (max-width: 460px) {
  #shopify-block-malomo_shipment_tracker .malomo-shipment-tracker-carrier-info {
    flex-direction: column;
    gap: 1rem;
  }
}

The result should look something like this:

Adding transparency behind Malomo tracking block

To add a transparency behind the tracking block, add the following code to the Custom CSS section of the Malomo banner

CODE
.malomo-shipment-tracker {
  background-color: rgba(236, 217, 219, 0.7);
}

The end result will look like this

Changing the font color inside of a tracking block

If you change the background color of the tracking block, some colors make the text inside ineligible. You can edit the font color with the following code

CODE
.malomo-shipment-tracker {
  color: #fff;
}

The end result will look like this:

Changing the font style of the text inside the tracking block

You can change the font style inside the tracking block with the following code:

CODE
.malomo-banner {
  font-family: Basis Grotesque Pro, Arial, sans-serif;
}

Changing the background color of the shipment history modal

You can change the modal color that pops up to show the tracking events with the following code:

CODE
.malomo-shipment-tracker-events-modal {
  background-color: #000;
  color: #fff;
}
.malomo-shipment-tracker-events-header-close-icon {
  filter: invert(1);
}

Add padding above the tracking block inside the Malomo banner

You can change padding above the tracking block with the following code:

CODE
.malomo-banner {
  padding-top: 200px;
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.