Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • monsterhunter Friend
    #202774

    How can I set imagesize in the category-blog and article?
    Can I set resize or crop for the category-blog image?

    Thanks

    Saguaros Moderator
    #555451

    May I know which style in Uber are you using?

    You can post your site’s URL here and tell me how you want the image should be, I will take a look.

    monsterhunter Friend
    #555581

    Hi

    I’m using default style.
    I want the blog-item image to be 100×100 instead of 300×300.
    see attachment:
    Which php or css-file do I need to edit?

    http://uber.demo.joomlart.com/index.php/joomla-page/content-page/category-blog

    Thank you


    1. joomlartuber1
    Saguaros Moderator
    #555670

    You can set the width /height for these images by adding this css rule:


    .t3-content .blog .item-image img {
    width: /*your_desired_value_here*/;
    height: /*your_desired_value_here*/;
    }

    into /templates/uber/css/custom.css file (create this file if it doesn’t exist).

    In case that you also want to increase the width for the content part, you can go to PHP file: templatesuberhtmlcom_contentcategoryblog_item.php and look for this snippet of code:


    <!-- Article -->
    <article>
    <div class="row">
    <div class="col-sm-4 item-image-box">
    <?php echo JLayoutHelper::render('joomla.content.intro_image', array('images'=>$this->item->images, 'params'=>$this->item->params, 'url'=>$link)); ?>
    </div>
    <div class="col-sm-8 item-content-box">
    <?php if ($params->get('show_title')) : ?>
    <?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h2')); ?>
    <?php endif; ?>

    We utilize the Bootstrap grid system here, you can reduce the value for col-sm-4 and increase it for col-sm-8, just make sure that the total grid is equal to 12. For example, if you change to col-sm-2 for image box, the content should be set with col-sm-10

    monsterhunter Friend
    #555796

    Wonderful explanation!
    Now the blog looks just like I want it.
    The support is really great here at Joomlart!
    Thank you Saguaros!

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

This topic contains 5 replies, has 2 voices, and was last updated by  monsterhunter 10 years ago.

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