Hundley1832 Posted January 17 Posted January 17 Hello, I am trying to change the color of the word “FORGED” from orange to white under “Step 1.” I can only seem to be able to change the entire block of text, not individual words. Thanks! https://www.forgedwellness.com/how-it-works
Solution tuanphan Posted January 20 Solution Posted January 20 Used the code to Code Injection <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("div.accordion-block p").each(function() { $(this).html($(this).html().replace(/FORGED/g, "<span>FORGED</span>")); }); $("span.accordion-item__title").each(function() { $(this).html($(this).html().replace(/FORGED/g, "<span>FORGED</span>")); }); }); </script> <style> div.accordion-block p span { color: rgb(235, 113, 20); } span.accordion-item__title span { color: white; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment