Okay
  Public Ticket #2342385
Change 'Out of Stock Badge'
Closed

Comments

  • tutuettata started the conversation

    Hello, 

    I managed to change the Text in the 'Out of Stock Badge' using Loco Translate. But it didn't work in the Child theme, so I think the Changes will be lost after an Update, right?

    I changed the Color of the Badge using

    .onsale {     background-color: rgb(145, 165, 159) !important; } in the Custom Css.

    I also wanted to change the size of the badge, is this possible? If that is not possible how can I change the Size of the font in the badge? I also would like to have the Word 'verkauft' right in the middle of the badge (I attached a screenshot)

    Thank you very much for your help.

  • [deleted] replied

    Hi tutuettata,

    Changes that you make inside your Wordpress area will be the same even if you update the theme. If you modify any of the theme files such as PHP, JS, or CSS files then they will be replaced to original theme ones once you update.

    If you want to modify theme core files then you need to use Child Theme so changes will be saved.

    1— Out of stock rename must work in Kalium (child theme) too, please make sure to change this word in Loco Translate again.

    2— Please just add this CSS code to your Custom CSS area:

    .woocommerce .onsale.oos {
        line-height: 60px;
        padding-top: unset;
    }

    Have a nice day!

  • tutuettata replied

    Thank you for your help

  • [deleted] replied

    Happy to hear thatsmile.png

    Have a nice day and stay safe!

    P.S: If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab. A huge thank you from Laborator in advance!