Posted January 28Jan 28 #1. You can edit page where you want to add random quote text > Add a Code Block #2. Paste this code into Code Block <h2 id="random-text"></div> #3. Use this code to Code Injection > Footer <script> const quotes = [ "Design is intelligence made visible", "Simplicity is the ultimate sophistication", "Good design is good business", "Make it simple but significant", "Less is more" ]; window.addEventListener('load', function() { const randomQuote = quotes[Math.floor(Math.random() * quotes.length)]; const textElem = document.getElementById('random-text'); if (textElem) { textElem.textContent = randomQuote; } }); </script> #4. Use this code to Custom CSS #random-text { font-size: 3rem; line-height: 1.4; text-align: center; padding: 2rem; font-weight: 300; color: #333; transition: opacity 0.3s ease; } #5. Result #6. To change text, you can adjust these lines. To change text style, you can change these. Email Me if you have need any help (free). Answer within 24 hours. Or send a forum message Buy me a coffee (thank you!)
Create an account or sign in to comment