Okay
  Public Ticket #3608560
Rotating Words Title
Closed

Comments

  • Kern started the conversation

    Hello team

    What is the best way in which I can break up rotating words titles?

    html doesn't seem to work to break it where I need it to break to two lines. 

    I've tried some CSS like trying to restrict it to a certain width, but it just chops off the words, and doesn't respond to word-break

    Thanks

    4283308051.png


  •  1,875
    Judith replied

    Hi Kern,

    Thanks for writing to us.

    Please share your website URL so that we can provide a working CSS for you.

    I look forward to your response.

  •   Kern replied privately
  •  1,875
    Judith replied

    Hello Kern,

    Thanks for writing back.

    To make the changes as requested, you will need to add some custom CSS code. To do this, please follow these steps:

    From your WordPress dashboard, Navigate to Salient > General Settings > CSS/Script Related. In the custom code area, insert the provided CSS snippet:

    @media only screen and (max-width: 690px) {
    .nectar-rotating-words-title .dynamic-words span {
                        width: 41vw;
                    }
                }
    .nectar-rotating-words-title .dynamic-words>span span span {
        width: 20vw;
        white-space: wrap !IMPORTANT;
    }

    Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related

    If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help. 


  • Kern replied

    Thanks so much, Worked a treat

  •  1,875
    Judith replied

    Hello Kern,

    You're welcome.

    I'm happy that we could assist you! If you haven't already, please consider sharing your experience by leaving a review on ThemeForest

    Your feedback is valuable to us and greatly appreciated!

    Should you have any further questions or encounter any issues, please don't hesitate to reach out.

    Best regards,