-
AuthorPosts
-
August 13, 2015 at 2:47 pm #660866
I have problem with category blog image alignment, as shown on the screenshot. The image stands on top of article instead of aligned to left. Settings seem to be right but it won’t work as expected.
Thanks
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 13, 2015 at 5:41 pm #660902The following resources should be helpful to you . . . . .
http://www.cmsmind.com/joomla-3-0-tutorial-how-to-wrap-text-around-images-in-articles/
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 13, 2015 at 5:41 pm #745376The following resources should be helpful to you . . . . .
http://www.cmsmind.com/joomla-3-0-tutorial-how-to-wrap-text-around-images-in-articles/
August 13, 2015 at 5:46 pm #660904Thanks for your feedback. But wrapping text around image on a single article is not my concern, anyone can do it on text editor. But my concern is on Category Blog page, NOTon single article.
August 13, 2015 at 5:46 pm #745378Thanks for your feedback. But wrapping text around image on a single article is not my concern, anyone can do it on text editor. But my concern is on Category Blog page, NOTon single article.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 14, 2015 at 4:39 am #660948<em>@imedee 487247 wrote:</em><blockquote>I have problem with category blog image alignment, as shown on the screenshot. The image stands on top of article instead of aligned to left. Settings seem to be right but it won’t work as expected.
Thanks</blockquote>
You can try to fix it with my solution below
Open templates/ja_nex_t3/html/com_content/category/blog_item.php file
find and remove script
<?php
//get images
$regex = '#<img[^>]*>#';
$image = '';
if (preg_match ($regex, $this->item->introtext, $matches)) {
$image = $matches[0];
$this->item->introtext = str_replace ($image, '', $this->item->introtext);
}
?>
<?php if ($image) : ?>
<div class="article-image">
<?php echo $image ?>
</div>
<?php endif; ?>
Let me know if it helps
1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by imedee 9 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum