I'm new to Wordpress theme development. i was trying to convert a static html theme to wordpress but my background image is not working here's the code
<div class="hero-slides owl-carousel">
<!-- Single Slide -->
<div class="single-hero-slide bg-img background-overlay" style="background-image: url(http://localhost/wordpress/wp-content/uploads/2018/07/bg1.jpg);"></div>
<!-- Single Slide -->
<div class="single-hero-slide bg-img background-overlay" style="background-image: url(http://localhost/wordpress/wp-content/uploads/2018/07/bg2.jpg);"></div>
</div>
when i inspect element the background-image url() shows empty. the static html page works just fine.