Viewing 12 replies - 1 through 12 (of 12 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @sara-etemad, Please don’t ping individual members like this. The @username reference is meant to be used to reply to people within the same thread, not to bring attention from outside of your thread.

    Thread Starter sara etemad

    (@sara-etemad)

    okay sorry, i did not know that it is against the rules.
    It was because of this person is great and always guided me properly.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you imagine if everyone pinged him because he’s awesome?
    The answer will be to create a Child Theme. Here are some instructions that work for themes distributed on www.ads-software.com: https://codex.www.ads-software.com/Child_Themes – But we cannot guarantee those instructions will work for your theme because your theme is not distributed on www.ads-software.com. If possible it would be best to contact your theme vendors for support.

    Thread Starter sara etemad

    (@sara-etemad)

    Thank you for this question but I have a general question that “quantity” word is not entered for all the default WordPress templates.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Didn’t you say that you updated WooCommerce and the change you made was erased?

    • This reply was modified 7 years, 11 months ago by Andrew Nevins.
    Thread Starter sara etemad

    (@sara-etemad)

    I should declare quantity world was not in in my theme until i wrote code for that.
    i think it was misunderstand i dont have any complain for updating woocommerce and lost my data,because i do not used to childtheme in the past.
    so this is my problem not yours.
    and i really happy and thankful with your updates

    • This reply was modified 7 years, 11 months ago by sara etemad.

    Sara, unfortunately a child theme won’t help in this case if you made a change to the Woocommerce plugin. And if you make a change to the Woocommerce plugin, you will lose that change when you update the plugin (unfortunately, there is no analogous process for creating a “child” plugin like you can with a child theme).

    You can try adding this CSS rule to your child theme’s style.css file:

    
    .cart .quantity:after {
        content: 'Quantity';
        margin-right: 10px;
        font-weight: 700;
    }
    

    You can change the :after to :before in the selector depending upon whether you want the word Quantity to display to the left or the right of the quantity field (if you change it to :before, then you also want to change the margin-right property to margin-left).

    Thread Starter sara etemad

    (@sara-etemad)

    Hi Dear CrouchingBruin
    Thank you for your help.
    As always it was great.
    I will not forget your help.
    I hope you all good luck.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @crouchingbruin, I thought WooCommerce was the exception? https://docs.woocommerce.com/document/template-structure/

    • This reply was modified 7 years, 11 months ago by Andrew Nevins.

    Hmmm, that’s interesting. I didn’t know it was possible to customize a plugin this way, but it’s very clever.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @sara-etemad, If you’re still interested in the solution as recommended by WooCommerce, set up a Child Theme and then open a thread in WooCommerce’s support section to ask “How to insert Quant…”: https://www.ads-software.com/support/plugin/woocommerce#new-post

    Thread Starter sara etemad

    (@sara-etemad)

    Hi Friends
    Thank you so much for your guides.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘how to insert the “Quantity” word to the side of the box that displays the numbe’ is closed to new replies.