Home Forums WoodMart support forum How can I split custom label text ?

How can I split custom label text ?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #677840

    tarek
    Participant

    Hello, I’ve a custom label called bestseller, but when it appears on the product image it seems way too big and I need to make the border radius to be circular so I need to split the word into 2 lines how can I do this ? because I tried to put <br> on the name of the attribute but it doesn’t has any effects.

    #677988

    Hung Pham
    Keymaster

    Hi tarek,

    Thanks for reaching to us and appreciate your patience.

    Please provide URL of the mentioned page, so I can take a closer look.

    Best Regards,
    Hung PD

    #678281

    tarek
    Participant

    Hello Hung,

    I’ve added the website URL as your request.

    #678370

    Hung Pham
    Keymaster

    Hi tarek,

    If you want to break words, it looks like this and not good https://ibb.co/sp87SSYC

    Do you want to increase width or reduce the border radius?

    Best Regards,
    Hung PD

    #678411

    tarek
    Participant

    I need it to be “best” in the first line and “seller” in the next line then I’ll see what it looks like then I’ll see what can I do with width or border radius.

    #678587

    Hung Pham
    Keymaster

    Hi tarek,

    Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:

    span.product-label.attribute-label:not(.label-with-img){
        font-size: 0;
        display: block;
        position: relative;
    }
    
    span.attribute-label::before,
    span.attribute-label::after{
        font-size: 12px;
        display: block;
        color: var(--color-gray-900);
    }
    
    .attribute-label::after{
        content: "Seller";
    }
    
    span.attribute-label::before {
        content: "Best";
    }

    Regards,
    Hung PD

    #678974

    tarek
    Participant

    Seems to be ok, thank you very much.

    #679010

    Hung Pham
    Keymaster

    Hi tarek,

    Glad to hear your issue has been resolved. And hope you can share you feedbacks here https://tally.so/r/w4l54k

    If you have a quick minute we always appreciate a 5-star rating on our theme!

    https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492

    Your feedback is the motivation to improve our work and services.

    Regards,
    Hung PD

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘How can I split custom label text ?’ is closed to new replies.