• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

woocommerce product quantity display issue?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › woocommerce product quantity display issue?

This topic is: resolved
  • This topic has 12 replies, 4 voices, and was last updated 10 years, 9 months ago by Brad Dalton.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • May 11, 2015 at 5:50 pm #151801
    Focused.1
    Participant

    Hey Thanks for any help that might be provided. I am having trouble locating where I can change how the quantity is being displayed. I am using "Swank" theme and the buttons to increase and decrease the quantity are showing but the actual quantity of a product in the cart is not showing. The quantity is changing when using the buttons. It seems like the theme is causing a display issue but I have not been able to get it to display properly.

    Any suggestions?

    Thanks a ton!

    http://www.zagazaproduction.com/
    May 11, 2015 at 6:20 pm #151802
    Victor Font
    Moderator

    The width of the input is in the WooCommerce css in the .woocommerce .quantity .qty block.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    May 11, 2015 at 6:36 pm #151803
    Focused.1
    Participant

    Thank you for your time and help!

    May 13, 2015 at 9:23 am #152004
    Jason Weakley
    Member

    Where would I find how to edit this? I am using the Agency Pro theme and am having a similar issue on this page:
    http://cornerstoneretrievers.com/shop/lucy/
    The quantity selector seems to be working, but does not display correctly.

    May 13, 2015 at 2:12 pm #152058
    Focused.1
    Participant

    You can edit the WooCommerce css in the .woocommerce .quantity .qty block. file via the file manager in your hosting account.

    May 13, 2015 at 5:04 pm #152079
    Jason Weakley
    Member

    I found it:

    Login to your hosting provider, access the File Manager and follow this file path:

    public_html/mydomain.com/wp-content/plugins/woocommerce/assets/css

    Select the woocommerce.css file and edit it.

    Search the document for "qty" (on a PC use [CTRL]+F).

    You are looking for a string of code that looks like this:

    .woocommerce .quantity .qty{width:3.631em;text-align:center}

    Change the value to whatever you'd like. 4.631 or 5.631 should be good.

    Save changes and leave the file open.

    Go to your website and refresh the page. View changes, edit the file if need be. Close window with the open file when you're satisfied.

    May 13, 2015 at 5:09 pm #152080
    Brad Dalton
    Participant

    What happens to your edits when you update the plugin?

    Why wouldn't you copy the CSS over to your child themes style sheet and edit it there so its saved after plugin updates?


    Tutorials for StudioPress Themes.

    May 13, 2015 at 5:15 pm #152081
    Jason Weakley
    Member

    Would it work if I just copy and paste
    .woocommerce .quantity .qty{width:6.631em;text-align:center}
    to the style.css file in WordPress?
    When I do this it doesn't seem to be working if I use a higher number it doesn't get wider...

    May 13, 2015 at 5:23 pm #152083
    Brad Dalton
    Participant

    Add !important https://css-tricks.com/when-using-important-is-the-right-choice/


    Tutorials for StudioPress Themes.

    May 13, 2015 at 5:28 pm #152085
    Jason Weakley
    Member

    Is this correct?

    .woocommerce .quantity .qty{width:6.631em;text-align:center !important}

    May 13, 2015 at 5:36 pm #152089
    Brad Dalton
    Participant

    Works when i test it in the browser yes.


    Tutorials for StudioPress Themes.

    May 14, 2015 at 6:37 am #152168
    Jason Weakley
    Member

    Hmmm, I'm just not seeing any change on screen when I change the size of the number.

    May 14, 2015 at 6:38 am #152169
    Brad Dalton
    Participant

    Clear all caching


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble