itemTitle - Index.php - K2 - V2.2

/ Published in: PHP
Save to your folder(s)

Use this to create the items title, within an item page.
Style by changing the H2 class.

Copy this code and paste it in your HTML
  1. <?php if($this->item->params->get('itemTitle')): ?>
  2. <!-- Item title -->
  3. <h2 class="itemTitle">
  4. <?php echo $this->item->title; ?>
  5. </h2>
  6. <?php endif; ?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.