Skip to main content

Custom CSS

Add your own CSS file to customize how Subscribfy widgets look on your store.

Updated over a month ago

Custom CSS

Add your own CSS file to customize how Subscribfy widgets look on your store.

Custom CSS in Shopify


What You'll Get

  • Full control — Override any Subscribfy widget styles

  • Brand consistency — Match widgets to your store's design

  • Persistent file — CSS stays even when you change themes

  • No app changes needed — Works independently of Subscribfy updates


Quick Setup

Let's create a custom CSS file in your Shopify theme. This takes just a few minutes.

Step 1: Create the CSS File

In your Shopify admin, go to Online StoreThemesActionsEdit code.

  1. Open the Assets folder

  2. Click Add a new asset

  3. Select Create a blank file

  4. Name it subscribfy-custom-styles.css

  5. Click Done

Step 2: Link the CSS File

Now you need to tell your theme to load this CSS file.

  1. Open the Layout folder

  2. Click on theme.liquid

  3. Find the <body> tag

  4. Add this code right after <body>:

##{{ 'subscribfy-custom-styles.css' | asset_url | stylesheet_tag }}

Click Save.

Step 3: Add Your Custom Styles

Go back to Assetssubscribfy-custom-styles.css and add your CSS.

Example: Change the loyalty widget button color:

.subscribfy-loyalty-button {
  background-color: #FF5733 !important;
  border-radius: 8px !important;
}


Common Customizations

Loyalty Widget

Button color

.subscribfy-loyalty-button { background-color: #000; }

Points text

.subscribfy-points-text { font-size: 16px; }

Widget container

.subscribfy-loyalty-widget { border-radius: 12px; }

Membership Widget

Plan card

.subscribfy-plan-card { border: 2px solid #000; }

Price text

.subscribfy-price { color: #333; }

Customer Portal

Portal header

.subscribfy-portal-header { background: #f5f5f5; }

Action buttons

.subscribfy-action-btn { border-radius: 4px; }


Tips

Use !important when needed
Some styles may need !important to override default Subscribfy styles.

Test on mobile
Always check how your custom CSS looks on mobile devices.

Theme updates
If you change or update your theme, you'll need to add the link code to theme.liquid again. The CSS file in Assets will stay.


Troubleshooting

CSS not applying?
Check that the link code is in theme.liquid after the <body> tag. Clear your browser cache and refresh.

Styles overridden by theme?
Add !important to your CSS rules to ensure they take priority.

Can't find the right class name?
Right-click on the element you want to style and select "Inspect" to see its CSS class names.


Contact support
Did this answer your question?