Drewfus Posted August 28, 2020 Share Posted August 28, 2020 I was wondering if there is a way to put color in the background of a custom widget side bar block not all blocks just one block? I put image in see how the image doesn't fill the block I want to add background color is it possible and how ? Link to comment Share on other sites More sharing options...
WP V0RT3X Posted August 28, 2020 Share Posted August 28, 2020 Yes, just wrap your custom code in your own css. Link to comment Share on other sites More sharing options...
Drewfus Posted August 28, 2020 Author Share Posted August 28, 2020 could you give an example I am not very good with codes I have the code in the widget block in content <script type="text/javascript" src="//rf.revolvermaps.com/0/0/1.js?i=5kq2jkw49ng&s=220&m=0&v=false&r=false&b=000000&n=false&c=ff0000" async="async"></script> Link to comment Share on other sites More sharing options...
Solution WP V0RT3X Posted August 28, 2020 Solution Share Posted August 28, 2020 <style> .revolvermaps { background: #000; display: flex; justify-content: center; align-items: center; } </style> <div class="revolvermaps"> <script type="text/javascript" src="//rf.revolvermaps.com/0/0/1.js?i=5kq2jkw49ng&s=220&m=0&v=false&r=false&b=000000&n=false&c=ff0000" async="async"></script> </div> Link to comment Share on other sites More sharing options...
Drewfus Posted August 28, 2020 Author Share Posted August 28, 2020 Thank you very much I am trying to learn this will help thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts