Okay
  Public Ticket #2875706
Translation for "Read more"
Closed

Comments

  • spider-web started the conversation

    Dears, 
    How could I translate the "READ MORE" message which appears when you move mouse on the product with status 'Sold out"?
    I tried to do translation with the plugin "Say What?" help but this way doesn't work.
    The same "READ MORE" message appears on home page and also on shop page https://trifelia.lt/shop/


  •  933
    Neuron replied

    Hi,

    Can you please provide me with your wp-admin, I will have a quick look to see what's going on.

    Feel free to ask for anything you need.

    Kind Regards


  •   spider-web replied privately
  •  933
    Neuron replied

    Hi,

    I've added the following code at Appearance > Customize > Additional CSS, can you please take a look at it?

    /* Hide the original Read More label.  */
    .outofstock .o-neuron-hover-holder__button__cart {
        visibility: hidden !important;
    }
    /* Replace original label with Out of Stock label. */
    .outofstock .o-neuron-hover-holder__button__cart span:before {
        content: "Sold Out";
        visibility: visible !important;
        position: absolute;
    }

    Feel free to ask for anything you need.

    Kind Regards


  • spider-web replied

    Thank you. And sorry if I express myself not so clearly: I just wanted to translate"READ MORE" message which appears when you move mouse on the product with status 'Sold out" to something else (in local language).
    So I changed a text from "sold our" in your recently added Additional CSS, and it works :) 

    Just one problem: on shop page https://trifelia.lt/shop/ the message somehow appears on right side instead of center, would it be possible to fix that? Please see attached jpg

  •  933
    Neuron replied

    Hi,

    I tried to log into your website to fix it, but unfortunately, I couldn't, can you please take a look at it?

    https://prnt.sc/1t7892v

    However, can you please replace the code that I've added before with the following code?

    /* Hide the original Read More label.  */
    .outofstock .o-neuron-hover-holder__button__cart {
        visibility: hidden !important;
    }
    /* Replace original label with Out of Stock label. */
    .outofstock .o-neuron-hover-holder__button__cart span:before {
        content: "Sužinok ką praradai";
        visibility: visible !important;
        position: absolute;
        width: 100%;
        left: 0;
        text-align: center;
    }

    Feel free to ask for anything you need.

    Kind Regards


  • spider-web replied

    The site works fine now (no crashes recorded).
    I've updated the code and it works just perfect for https://trifelia.lt/shop/ page!  Thank you very much! 
    However the message box looks bit different (has no space at the bottom) on home page  https://trifelia.lt/ (please see attached jpg - one how it looks "original" button, and next one - how it looks translated button).
    Anyway, I can use the Translation for "Read more" as it realized is for now, but if you have solution how to fix appearance of the message also for home screen, please share (I must admint that this is not big issue).

  •  933
    Neuron replied

    Hi,

    I've just updated the code and I think now it's alright.

    Feel free to ask for anything you need.

    Kind Regards


  • spider-web replied

    Brilliant! Thank you Neuron!!

  •  933
    Neuron replied

    You are welcome anytime, feel free to ask for anything you need

    Kind Regards,
    NeuronThemes