CELEBRATE THE RELEASE OF JOOMLA 3.7 AND TAKE 37% OFF YOUR ORDER TODAY WITH COUPON CODE: JOOMLA37

Community Forum

Welcome to our user to user community. If you need support for a product, please open a support ticket.

Keyword

Topic-icon How to change the fixed scrolling article image

  • jayblaq
  • jayblaq's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
10 months 6 days ago #129 by jayblaq
jayblaq created the topic: How to change the fixed scrolling article image
If you are not familiar with Overrides please take a moment to check out the following video tutorials:





For the Fitness Life temple we changed the normal image call of Joomla and created a fixed background image. To revert back to the normal image simply open the default.php found in templates/fitlife/html/com_content/article/default.php. On or around lines 33-37 find:
<?php if (isset($images->image_fulltext) and !empty($images->image_fulltext)) : ?>
<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
<div class="itemImageBlock pushdown" style="background: url(<?php echo htmlspecialchars($images->image_fulltext); ?>) no-repeat 50% fixed;">
</div>
<?php endif; ?>


Replace with:
<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img
<?php if ($images->image_fulltext_caption):
echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>" itemprop="image"/> </div>
<?php endif; ?>><?php if (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img
<?php if ($images->image_fulltext_caption):
echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>" itemprop="image"/> </div>
<?php endif; ?>
The following user(s) said Thank You: vitsa74

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