php - Bootstrap to wordpress wont show the image correctly -


i trying convert bootstrap theme wordpress theme , wordpress won't show image. made screenshots showing @ left theme in bootstrap , right 1 in wordpress.

bootstrap wordpress

and code image container in wordpress don't know doing wrong have tried , nothing works.

<div class="container-fluid">   <div class="row" data-fluid=".fluidheigt" data-float="true">     <div class="col-sm-5 imagecol">       <div class="image fluidheigt" style="background-image:url(<?php echo get_template_directory_uri();?>/img/img-our_impact.jpg)">         <img src="<?php echo get_template_directory_uri();?>/img/img-our_impact.jpg" alt="" class="img-responsive visible-xs" />           </div>             </div> 

i have tried change class="img-responsive visible-xs" class="img-responsive.visible-xs" , this:

second image

the styles both same bootstrap , wordpress have exclude style code cause of problem, have noticed bootstrap theme automatically generates code after tag style min-height:799px; meanwhile wordpress theme doesn't generate that.

please me, if need further information solve ask me thanks.

.visible-xs make image visible on extra-small devices only. try put this:

 <img src="<?php echo get_template_directory_uri();?>/img/img-our_impact.jpg"   alt="" class="img-responsive" /> 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -