Drewfus Posted August 28, 2020 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 ?
WP V0RT3X Posted August 28, 2020 Posted August 28, 2020 Yes, just wrap your custom code in your own css.
Drewfus Posted August 28, 2020 Author 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>
Solution WP V0RT3X Posted August 28, 2020 Solution 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>
Drewfus Posted August 28, 2020 Author Posted August 28, 2020 Thank you very much I am trying to learn this will help thanks again.
Recommended Posts