Keyword

[SOLVED]Move Text Above the Image on the Item Page

  • Kory Mitchell
  • Kory Mitchell's Avatar Topic Author
  • Offline
  • New Member
More
10 years 7 months ago - 10 years 7 months ago #125593 by Kory Mitchell
Hello,

Does anyone know the php code changes I need to make to the item.php page to move the text, i.e. introtext, fulltext, and maybe item text, above the image?

Thanks.

Kory

Solution Below

You can see this solution in action at Busy Teacher Resources Sample Lessons

I moved the text code above the <!-- Plugins: BeforeDisplayContent --> which is before the Item Image. I placed it directly after the <div class="itemBody">. Basically, here is the code I moved to line 202:

<?php if(!empty($this->item->fulltext)): ?>
<?php if($this->item->params->get('itemIntroText')): ?>
<!-- Item introtext -->
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemFullText')): ?>
<!-- Item fulltext -->
<div class="itemFullText">
<?php echo $this->item->fulltext; ?>
</div>
<?php endif; ?>
<?php else: ?>
<!-- Item text -->
<div class="itemFullText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>

Hope this helps someone.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum