My html code:
<div class="workList col-lg-4"> <div class="view-back"> <a href="" target="_blank">→</a> </div> <img class="img-responsive" src="<?php print base_path(). path_to_theme();?>/assets/images/img.jpg" alt=""> </div>
In views-view-fields–name–name.tpl I’m using this code:
<div class="view-back"> <a href="" target="_blank">→</a> </div> <?php print $fields['field_fieldName']->content;?>
The generated output is the following.
<div class="col-lg-4 first odd"> <div class="view-back"> <a href="" target="_blank">→</a> </div> <div>## I have to remove this div <img typeof="foaf:Image" src="https://localhost/Drupal/name/sites/default/files/styles/recent_work/public/img.jpg?itok=vVkU2WWt" width="390" height="250" alt=""> </div> </div>
I have to remove the default <div>
before the <img>
tag.