Skip to main content
<div class="col-sm-12 border_post"> 
  <div class="col-sm-5"><div5">
 class="post_img"><   <div class="post_img">
      <?php print $fields['field_image']->content; ?>
    </div><div>
  </div>
<div class="col-sm-6">
  <div class="post_text">
    <h3> <?php print $fields['title']->content;  ?>  </h3>
    <h5> By:<?php print $fields['name']->content; ?> | <?php print $fields['field_date']->content; ?> </h5>
    <?php $body =$fields['body']->content;
      $bodycontent =  strlen( $body ) > 230  ? substr( $body, 0, 227 ) .'...' : $body;   ?>
      <div class="post_desc"><?php print $bodycontent ;   ?></div >
    <?php if(!empty($fields['field_link']->content)) {
      $link=$fields['field_link']->content;
    }
    else {
      $link=$fields['path']->content;
    }?>
    <div class="post_btn"><aclass="post_btn">
      <a href="<?php echo $link; ?>" class="btn-dark">Learn More<iMore
        <i class="fa fa-angle-right"></i></a></div>i>
      </div>a>
    </div>

 
  </div>
</div>
<div class="col-sm-12 border_post"> 
<div class="col-sm-5"><div class="post_img"><?php print $fields['field_image']->content; ?> </div></div>
<div class="col-sm-6">
<div class="post_text">
<h3> <?php print $fields['title']->content;  ?>  </h3>
<h5> By:<?php print $fields['name']->content; ?> | <?php print $fields['field_date']->content; ?> </h5>
<?php $body =$fields['body']->content;
 $bodycontent =  strlen( $body ) > 230  ? substr( $body, 0, 227 ) .'...' : $body;   ?>
 <div class="post_desc"><?php print $bodycontent ;   ?></div >
<?php if(!empty($fields['field_link']->content)){ $link=$fields['field_link']->content; } else {$link=$fields['path']->content; }?>
<div class="post_btn"><a href="<?php echo $link; ?>" class="btn-dark">Learn More<i class="fa fa-angle-right"></i></a></div>
</div>
</div>

 
</div>
</div>
<div class="col-sm-12 border_post"> 
  <div class="col-sm-5">
    <div class="post_img">
      <?php print $fields['field_image']->content; ?>
    </div>
  </div>
<div class="col-sm-6">
  <div class="post_text">
    <h3> <?php print $fields['title']->content;  ?>  </h3>
    <h5> By:<?php print $fields['name']->content; ?> | <?php print $fields['field_date']->content; ?> </h5>
    <?php $body =$fields['body']->content;
      $bodycontent =  strlen( $body ) > 230  ? substr( $body, 0, 227 ) .'...' : $body;   ?>
      <div class="post_desc"><?php print $bodycontent ;   ?></div >
    <?php if(!empty($fields['field_link']->content)) {
      $link=$fields['field_link']->content;
    }
    else {
      $link=$fields['path']->content;
    }?>
    <div class="post_btn">
      <a href="<?php echo $link; ?>" class="btn-dark">Learn More
        <i class="fa fa-angle-right"></i>
      </a>
    </div>
  </div>
</div>
added 946 characters in body
Source Link

the view's template.tpl.php file is

<div class="col-sm-12 border_post"> 
<div class="col-sm-5"><div class="post_img"><?php print $fields['field_image']->content; ?> </div></div>
<div class="col-sm-6">
<div class="post_text">
<h3> <?php print $fields['title']->content;  ?>  </h3>
<h5> By:<?php print $fields['name']->content; ?> | <?php print $fields['field_date']->content; ?> </h5>
<?php $body =$fields['body']->content;
 $bodycontent =  strlen( $body ) > 230  ? substr( $body, 0, 227 ) .'...' : $body;   ?>
 <div class="post_desc"><?php print $bodycontent ;   ?></div >
<?php if(!empty($fields['field_link']->content)){ $link=$fields['field_link']->content; } else {$link=$fields['path']->content; }?>
<div class="post_btn"><a href="<?php echo $link; ?>" class="btn-dark">Learn More<i class="fa fa-angle-right"></i></a></div>
</div>
</div>


</div>
</div>

the view's template.tpl.php file is

<div class="col-sm-12 border_post"> 
<div class="col-sm-5"><div class="post_img"><?php print $fields['field_image']->content; ?> </div></div>
<div class="col-sm-6">
<div class="post_text">
<h3> <?php print $fields['title']->content;  ?>  </h3>
<h5> By:<?php print $fields['name']->content; ?> | <?php print $fields['field_date']->content; ?> </h5>
<?php $body =$fields['body']->content;
 $bodycontent =  strlen( $body ) > 230  ? substr( $body, 0, 227 ) .'...' : $body;   ?>
 <div class="post_desc"><?php print $bodycontent ;   ?></div >
<?php if(!empty($fields['field_link']->content)){ $link=$fields['field_link']->content; } else {$link=$fields['path']->content; }?>
<div class="post_btn"><a href="<?php echo $link; ?>" class="btn-dark">Learn More<i class="fa fa-angle-right"></i></a></div>
</div>
</div>


</div>
</div>
edited title
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91

Panels are wrapping the content into wieredweird <strong> tags; Drupal 7tags

I am new to panels, using panels module to set the page that contains 3 views on it (nothing wrong with these views), when iI add the content, the output displays wieredweird tags those are wrapping the content there fore the layout on the front end gets disturb, heredisturbed.

Here is the link to my website page : http://lookwhatwemadeyou.com/trillist/news-press , find "Recent from the Blog" Section.

Q: How to remove these extra tags? where these tags are coming from as iI didn't create any custom layout. Is there any way to control the layout other then overriding the panel layouts templates?

Panels are wrapping the content into wiered <strong> tags; Drupal 7

I am new to panels, using panels module to set the page that contains 3 views on it (nothing wrong with these views), when i add the content, the output displays wiered tags those are wrapping the content there fore the layout on the front end gets disturb, here is the link to my website page : http://lookwhatwemadeyou.com/trillist/news-press , find "Recent from the Blog" Section.

Q: How to remove these extra tags? where these tags are coming from as i didn't create any custom layout. Is there any way to control the layout other then overriding the panel layouts templates?

Panels are wrapping the content into weird <strong> tags

I am new to panels, using panels module to set the page that contains 3 views on it (nothing wrong with these views), when I add the content, the output displays weird tags those are wrapping the content there fore the layout on the front end gets disturbed.

Here is the link to my website page : http://lookwhatwemadeyou.com/trillist/news-press , find "Recent from the Blog" Section.

Q: How to remove these extra tags? where these tags are coming from as I didn't create any custom layout. Is there any way to control the layout other then overriding the panel layouts templates?

deleted 1 character in body
Source Link
Loading
Source Link
Loading