-
AuthorPosts
-
monsterhunter Friend
monsterhunter
- Join date:
- September 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 14
- Thanked:
- 1 times in 1 posts
November 16, 2014 at 2:14 pm #202774How can I set imagesize in the category-blog and article?
Can I set resize or crop for the category-blog image?Thanks
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 17, 2014 at 3:09 pm #555451May 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 Friendmonsterhunter
- Join date:
- September 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 14
- Thanked:
- 1 times in 1 posts
November 18, 2014 at 10:08 am #555581Hi
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
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 19, 2014 at 2:11 am #555670You 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
1 user says Thank You to Saguaros for this useful post
monsterhunter Friendmonsterhunter
- Join date:
- September 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 14
- Thanked:
- 1 times in 1 posts
AuthorPostsViewing 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
imagesize
Viewing 5 posts - 1 through 5 (of 5 total)