-
AuthorPosts
-
February 16, 2016 at 7:12 pm #884544
How to crop thumbnails in order to make them square ?on featured (main) news? I need to show them as square on front page. Image itself should not be square.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 17, 2016 at 2:55 am #884868Hi @zviadi,
Do you mean this image in our demo site? http://prntscr.com/a49zmu
This is leading item in featured blog of homepage, if you know Bootstrap grid system – 12 grids (which built with T3 framework), this leading item is divided in this way: 8 grids in leading main and 4 grids in leading sidebar: http://prntscr.com/a4a0k5
With being said, if you reduce the width of leading image, there will be space between leading main and leading sidebar part. I think you can change the number of grids so that these 2 parts have 6 grids for both.
To do this, you open the file: ROOT/templates/ja_magz_ii/html/com_content/featured/default.php
and change to
col-md-6
as this screenshot: http://prntscr.com/a4a1hhIn case that you still want to change dimension of leading image, you can open the css file: ROOT/templages/ja_magz_ii/css/custom.css (create this file if it doesn’t exist)
and add this css rule:
.t3-content .blog-featured .items-leading .item-image img { height: 440px; width: 440px; }
Then change the width, height to the value which suits your need.
February 17, 2016 at 9:04 pm #885776No, I mean small images of the featured articles (which are on right side of the main story).
Look at our website: http://finchannel.com/demo/Square images should be for folliwing articles :
"Tbilisi New Year123"
"Hudson Witness Stanley Laugh"
"Early impressions: USC, UCLA might be for real, SEC not so much"I dont want to upload square images – I just need to show them on sidebar as square.
P.S> and THANKS for your great support.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 18, 2016 at 3:13 am #885941You can define the dimension for image in that block by using this css:
.leading-sidebar .item-image img { width: 80px; height: 80px; }
into the file: ROOT/ja_magz_ii/css/custom.css (create this file if it doesn’t exist).
February 18, 2016 at 9:00 pm #886402the code you provided changed proportion of the image, and did not cropped image.
my aim is to show image as square. original image itself should remain the sameSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 19, 2016 at 2:02 am #886489What is original dimension of image? and can you send screenshot of how it should be?
February 19, 2016 at 12:09 pm #886816should be like this (attached image) Square images. But when you click on article, it should be as in standard template.
This means thumbnails in sidebar news (feature items) should visually crop images to show them as square – BUT keeping visual proportion.Your code (provided earlier) just changed image dimension.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 22, 2016 at 4:17 am #888133Try opening ‘custom.css’ file as I mentioned above and add this code:
.leading-sidebar .item-image { height: 76px; } .leading-sidebar .item-image img { height: 71px; }
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 7 replies, has 2 voices, and was last updated by Saguaros 8 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
square thumbnails on featured news
Viewing 8 posts - 1 through 8 (of 8 total)