Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Michael Lungu Friend
    #173010

    Hello,
    The template adds its own positioning and formatting to images added in articles, which code can i remove to solve this? or any other method?

    jwellman Friend
    #442747

    I would like to the know the answer as well.

    gvb57 Friend
    #446105

    Same problem… Any answers??

    joomlanews Friend
    #450149

    same Problem here… Can I remove this ugly function….

    Sherlock Friend
    #450308

    Hi mikeaxle2011,

    You can try as following to get rid of the function for the article layout
    open the file of templatesja_blazeshtmlcom_contentarticledefault.php you looking for this block of code and comment it out or remove it
    [PHP]
    <?php
    //get images
    $regex = ‘#<img[^>]*>#’;
    $image = ”;
    if (preg_match ($regex, $this->item->text, $matches)) {
    $image = $matches[0];
    $this->item->text = str_replace ($image, ”, $this->item->text);
    }
    ?>
    <?php if ($image) : ?>
    <div class=”article-image”>
    <?php echo $image ?>
    </div>
    <?php endif; ?>

    [/PHP]

    Do the same for those below files if you also want to remove the function for the category and feature layout

    templatesja_blazeshtmlcom_contentcategoryblog_item.php,
    templatesja_blazeshtmlcom_contentfeatureddefault_item.php

    I hope it help all 🙂

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

This topic contains 5 replies, has 5 voices, and was last updated by  Sherlock 12 years ago.

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