Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • jreimer Friend
    #184676

    Hello,

    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 Moderator
    #482399

    Which layout in particular? There is different code for each different layout such as front page, blog, k2 layouts etc.

    jreimer Friend
    #482401

    Front page for sure, blog as well.

    Thanks,
    Dan.

    Phill Moderator
    #482406

    OK, 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

    jreimer Friend
    #482527

    Still no go. Now there is dead space where the picture was.


    1. deadspace
    Phill Moderator
    #482531

    So 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

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  Phill 11 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum