-
AuthorPosts
-
jreimer Friend
jreimer
- Join date:
- June 2009
- Posts:
- 50
- Downloads:
- 19
- Uploads:
- 7
- Thanks:
- 3
- Thanked:
- 2 times in 2 posts
February 4, 2013 at 6:02 pm #184676Hello,
I would like to disable the automatic image placement in this template. Anyone have current instructions on how to do this? I found some older ones, but that code doesn’t exist in the file that is specified.
http://www.joomlart.com/forums/topic/image-formatting-on-template-very-annoying/
Dan.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 4, 2013 at 7:49 pm #482399Which layout in particular? There is different code for each different layout such as front page, blog, k2 layouts etc.
jreimer Friendjreimer
- Join date:
- June 2009
- Posts:
- 50
- Downloads:
- 19
- Uploads:
- 7
- Thanks:
- 3
- Thanked:
- 2 times in 2 posts
February 4, 2013 at 8:34 pm #482401Front page for sure, blog as well.
Thanks,
Dan.Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 4, 2013 at 9:06 pm #482406OK, for the frontpage open templatesja_kranoshtmlcom_contentfeatureddefault_item.php
and remove the code below
//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 ?>And for the blog layout remove the same code from templatesja_kranoshtmlcom_contentcategoryblog_item.php
1 user says Thank You to Phill for this useful post
jreimer Friendjreimer
- Join date:
- June 2009
- Posts:
- 50
- Downloads:
- 19
- Uploads:
- 7
- Thanks:
- 3
- Thanked:
- 2 times in 2 posts
February 5, 2013 at 2:44 pm #482527Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 5, 2013 at 2:50 pm #482531So now we simply need to adjust a little css. Can I have a link to your site with the css optimization disabled in the template manager please?
I would gues it is just the padding in template.css /templates/ja_kranos/css/template.css line 366 as per below
.blog-image .item .contentpaneopen {
padding-left: 250px;}
Just adjust the 250px to your requirements
1 user says Thank You to Phill for this useful post
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 2 voices, and was last updated by Phill 11 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Disable automatic image placement
Viewing 6 posts - 1 through 6 (of 6 total)