• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Additional CSS does not display consistently

Additional CSS does not display consistently

  • Unknown's avatar
    gudyoooo · Member · Apr 9, 2023 at 10:38 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Background: I hava a woocommerce-enabled website which uses the Tsubaki WP theme (comes for free with my subscription and was recommended by WP Customer Support engineer). I am using the default template for a single product page.

    Goal: I would like to (1) round the Add To Cart button (2) round and shorten the quantity input (3) disable the click to zoom functionality on the product gallery image.

    I have tried adding Additional CSS (Appearance > Additional CSS) to no avail. The process I have followed is (1) make a change in Additional CSS, then (2) update the published product page. (Note: The page is currently locked with a password because it is WIP).

    When I make the changes within Chrome > Inspect, they happen.

    One of the problems I am facing is that ONLY the first CSS rule ever gets applied. Example:

    // First CSS Rule: Round add to cart button
    .woocommerce div.product form.cart button.single_add_to_cart_button,.woocommerce div.product form.cart button[name=add-to-cart] {
    border-radius: 30px;
    }
    // Second CSS Rule: Round and shorten quantity
    .woocommerce .quantity input[type=number] {
    width: 2em;
    border-radius:5px;
    }

    If I move the quantity rule above the cart button rule – then it gets applied and the cart one doesn’t.

    The CSS to disable the click events in the gallery image I have been using is below. It also works in chrome on its own and I have had the same inconsistent behavior with it when added to the additional CSS.

    div.woocommerce-product-gallery__image {
    pointer-events: none;
    }

    This is super confusing and frustrating. I even tried nested rules and still made no difference. Obviously, the order can matter, but what am I missing?

    Any help is appreciated! :)

    Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    aisajib · Member · Apr 11, 2023 at 5:30 am
    • Copy link Copy link

    Hi there!

    It appears you contacted us via email as well shortly after posting here. To avoid duplicating efforts, please reply to the email we’ve sent. Your plan also gives you access to live chat support, which you can access at this link.

    Thanks!

  • The topic ‘Additional CSS does not display consistently’ is closed to new replies.

Tags

  • account
  • CSS
  • design
  • images
  • Jetpack
  • payment
  • WooCommerce

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 3 years
  • Latest reply from gudyoooo

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions