Palo Alto Doumentation
NewSupport
Latest version
Latest version
  • Palo Alto theme documentation
  • Updates
    • What's new in Palo Alto
      • Release notes
      • About 6.2 Release
      • About 6.1 Release
      • About 6.0 Release
      • About 5.9 Release
      • About 5.8 Release
      • About 5.7 Release
      • About 5.6 Release
      • About 5.5 Release
      • About 5.4 Release
      • About 5.3 Release
  • Sections
    • Palo Alto sections
      • Explore the sections
      • Accordions
        • Text block
        • Page block
      • Accordions with images
        • Text block
        • Page block
      • Banner image
        • Subheading block
        • Heading block
        • Text block
        • Timer block
        • Buttons block
        • Video button block
      • Banner with text columns
        • Column block
      • Blog posts
      • Buttons list
        • Button block
      • Collection list
        • Collection block
      • Contact form
        • Form heading block
        • Email block
        • Message block
        • Text line block
        • Telephone block
        • Divider block
        • Single checkbox block
        • Select dropdown block
        • Radio buttons block
      • Countdown
        • Subheading block
        • Heading block
        • Text block
        • Timer block
        • Buttons block
        • Video button block
      • Custom code
      • Custom content
        • Image block
        • Text block
        • Newsletter block
        • Testimonial block
        • Product block
        • Video block
        • Collection block
      • Divider
      • Featured collection
        • Promo block
      • Featured product
      • Grid
      • Icons row
      • Image
      • Image accordions
      • Image with scrolling text
      • Image with text
      • Locations
      • Marquee
      • Multi column
      • Newsletter
      • Overlapping images
      • Press/Logo
      • Products list
      • Products with image
      • Promotion row
      • Recently viewed products
      • Shop the look banner
      • Shop the look grid
      • Shoppable blog posts
      • Slideshow
      • Social gallery
      • Split images
      • Sticky image cards
      • Sticky images and text
        • Sticky images and text: Horizontal
      • Tab collections
      • Testimonials
      • Testimonials with images
      • Text
      • Text columns with images
      • Video
  • Theme Settings
    • Theme settings
      • How to make changes
      • Colors
      • Typography
      • Buttons
      • Product grid
      • Product form
      • Quick shop
      • Cart
      • Upsells
      • Loading overlay
      • Appearance
      • Animation
      • Badges
      • Swatches
      • Pagination
      • Search
      • Social media
      • Currency
      • Favicon
      • Size chart
      • Custom CSS
      • Theme style
  • Header
    • Announcement bar
      • Settings and blocks
      • Text
      • Free shipping message
      • Custom HTML
      • Target settings
      • Image
    • Header
      • Header settings
      • Mega menu
      • Logo
      • Highlighted link
      • Transparent header
    • Mobile menu
      • Menu
  • Footer
    • Footer
      • Settings and blocks
      • Logo
      • Text
      • Link list
      • Newsletter
      • Blog
  • Products
    • Product pages
      • Variant images
      • Settings and layout
      • Size chart tabs
      • Size chart metafields
      • Custom color swatches
      • Pre-order
      • Gift card product
      • Out of stock notification
      • Metaobjects
      • Creating new product page templates
    • Blocks
      • Product blocks
      • Title and price
      • Form
      • Product description
      • Cutline
      • Accordion
      • Upsell
      • Share button
      • Pickup availability
      • Custom code
      • Text
      • Icon
      • Icon row
      • Siblings
      • Inventory countdown
      • Popup text
      • Line item property
      • Divider
      • Feature
      • Complementary products
      • Badges
      • Timer
      • Fit guide
  • Collections
    • Collection pages
      • Filtering options
      • Custom product badges
      • Cutline
      • Catalog banner images
      • Collection pages promo
  • Cart
    • Palo Alto Cart
      • Cart types
      • Empty cart buttons
      • Free shipping message
      • Custom message
      • Terms and conditions
      • Upsell promotion
  • Pages
    • Page templates
  • Blogs
    • Blogs and articles
      • Settings and layout
      • Recommended posts
      • Creating blog page templates
  • Overlay
    • Popups
      • Popup with image
      • Popup small
      • Cookie consent
      • Popup behavior
  • Promotions
    • Upselling
      • Upsell promotions
  • Siblings
    • Product siblings
      • About product siblings
      • How to setup siblings
      • Define a metaobject
      • Add product list entries
      • Activate using a metafield
      • Bulk update sibling products
      • Siblings block
  • FAQ
    • Frequently asked questions
      • Updating your theme
      • Highlight words
      • Image aspect ratio
      • Recommended image sizes
      • Adding a section
      • Reordering sections
      • Sharing a preview link
      • Check your theme version
      • How to add custom fonts
      • Remove 'Powered by Shopify'
      • CSS customizations
  • License
    • Theme license
  • Support
    • Contacting support
    • Shopify Experts
Powered by GitBook
On this page
  • Theme Customizer
  • Product pages
  • Theme Sections
  • Global CSS
  • Example of code snippet
  • Alternate method
Export as PDF
  1. FAQ
  2. Frequently asked questions

CSS customizations

Adding your own custom styles and CSS overrides to the theme

PreviousRemove 'Powered by Shopify'NextTheme license

Theme Customizer

Shopify has made adding global and local CSS changes to your theme easy. Palo Alto supports these Theme Customer methods. Some examples are:

  • Template Pages - Apply CSS overrides to Product templates, Blog posts, and standard Page templates.

  • Sections - Customize elements only within a specific section. This includes the home page, header, cart drawer, and footer.

  • Global - Apply CSS overrides for the entire store.

Advantages

  • When updating Palo Alto to newer versions, these CSS changes will automatically be applied to your new theme.

  • The Shopify Update tool migrates any Custom CSS added to the Theme Customizer.

Product pages

  1. Click on "Product pages" in the Theme Customizer sidebar.

  2. Find "Custom CSS" towards the bottom of the settings.

  1. Click on "Custom CSS" to expand the accordion. Here, you can paste the CSS code:

The CSS code snippet you use here will apply to all products that use the same template.

Be sure to paste valid CSS code and then save the changes in the Theme Customizer.


Theme Sections

The home page sections and other sections used throughout the theme will have a similar option for adding CSS code snippets. Changes made there are local to only that section.

  1. Click on the section you'd like to add your CSS code snippet to.

  2. In the section settings, scroll to the bottom and click on "Custom CSS" to expand. Then, add your CSS code snippet inside.

The CSS you add here will only affect this section and will not affect any other sections in your store.

Remember to Save your changes.


Global CSS

Use the Theme Settings in the Theme Customizer to add a CSS code snippet that will target all areas of your store.

  1. Click on the Settings icon in the Theme Customizer.

  2. Towards the bottom, click to expand the "Custom CSS" accordion and paste your code snippet into the main field.

Example of code snippet

We'll use this sample code snippet to demonstrate where the code will be added:

.loading-overlay {
  display: none;
}
  1. Copy all of the code, including the opening and closing curly brackets.

  2. Paste the code snippet into the main box area.

Line numbers will be displayed next to your code snippet to help indicate how many lines of code have been added.

Save your changes.


Alternate method

Developers might be used to editing theme.css files. However, we no longer recommend this method as it's a legacy option.

Disadvantages

  • Code added using the Code Editor will not automatically migrate when you update your theme.

Please use the above methods to avoid manually adding CSS code changes after each time you update Palo Alto.

For developers who would like to use the Code Editor, it's very important to add your custom CSS at the bottom of the theme.css file, which is located in the assets folder.