test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • drlapming Friend
    #1075644

    the intro images of the blog at the left side is elongated. Can we make the intro image to fit in the box without distortion of the image? The full image in the article looks normal. I used menu item type xlayout-Blog 1 template for the blog.


    1. aaaa
    2. bbbb

    LM SKINCENTRE

    Pankaj Sharma Moderator
    #1075757

    Hi
    The image use 100% with an auto resize as per the container size. On blog page the items use two columns one for image and one for text.
    If you want to show both in full width.
    Open template folder /html/com_content/category/xblog_item.php file
    Find

    <!-- Intro image -->
            <div class="col-sm-4">

    replace it with

    <!-- Intro image -->
            <div class="col-sm-12">

    now find

    <div class="col-sm-8">
                <?php if ($params->get('show_title')) : ?>

    replace it with

    <div class="col-sm-12">
                <?php if ($params->get('show_title')) : ?>

    save and check.

    Regards

    drlapming Friend
    #1075803

    Hi, thanks for your suggestion. I don’t mean to show in full width, I mean the width should be auto-sized to fit the container width and the height should be kept in proportion. The image I show you is an elongated one which I don’t prefer. Thanks.

    LM SKINCENTRE

    Pankaj Sharma Moderator
    #1075809

    Hi
    It’s already auto size, and use max-width:100% of the container, and resize with respect to the original size of the image.
    You can change the value of col-md-4 and col-md-8 to increase/decrease the width.
    Make sure total width should be 12.

    Regards

    drlapming Friend
    #1075822

    thanks.

    LM SKINCENTRE

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

This topic contains 4 replies, has 2 voices, and was last updated by  drlapming 7 years ago.

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