-
AuthorPosts
-
ssinha Friend
ssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
August 25, 2017 at 3:30 pm #1058625Since upgrading to new Joomla version and the latest Teline V template, the intro image in all articles get resized automatically. All our images are 800×500 but the template automatically resizes them to 750×385 size. I would like to leave them alone at the original size of 800×500.
I checked the forum and there are literally hundreds of results when searching on image resizing. I tried a few by changing the custom.css but they had no result on the site. Could one of you please look into it?
Another minor problem I am having is the caption on intro image on article pages. Before upgrade, I had red background with white text on it. Now it’s transparent grey with white text on it which is kind of hard to read.
Sure would help on these soon. Thanks.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 28, 2017 at 4:35 am #1058846Hi,
You can share the credentials of your site and tell me the page where I can replicate the issue.
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
August 28, 2017 at 4:41 pm #1058984Sending as separate private reply.
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
August 28, 2017 at 4:42 pm #1058985This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 29, 2017 at 8:52 am #1059127Hi,
It looks like you customized the layout of template so that the width of the main content can’t be equal 800px: http://prntscr.com/gedc4n
With the height of image, you can add this css rule:
.article-main .article-intro-media .item-image { max-height: 100%; }
into the file: [root]/templates/ja_teline_v (your default template)/css/custom.css (create this file if it doesn’t exist)
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
August 29, 2017 at 12:56 pm #1059210Hi Saguaros, thanks for the help. Your solution worked great except for one minor problem – it creates a double caption line in the image after making the above change in custom.css. See two images attached. One is before the change you suggested when the image size was 750×385 and the second after applying your suggestion with image size being 800×500. The first one shows only one caption while the second one shows two captions.
Obviously, I would like only one caption and get rid of the other while keeping the image size at 800×500.
For convenience, I am also attaching the custom.css file (before applying your change) just in case it might give you a better idea of the problem at hand.
Just to remind you, we used this template almost two years ago when Teline V was released for the first time. At that time, there were several issues with the template, including no native support for caption (a bug). With the help of you guys, we were able to customize the custom.css heavily to the point that everything looked fine to us. Couple of weeks ago when we finally updated the Teline V to the newest version and also upgraded to the latest Joomla, we kept the old copy of custom.css because we didn’t want to go through the headache of going through the headache of customizing to our liking that we did two years ago.
While that strategy did help to some degree, I think it has also created some problem because many of the customization in the custom.css file is no longer required because Joomlart has fixed many of the issues that it had in its initial version.
I just wanted to throw this fact out to you so it might give you proper context of the problem.
(Right now, I have reverted the change you suggested so the captions don’t look bad.)
Thanks for your help, Saguaros.
Edit – custom.css is not allowed to attach.
- This reply was modified 7 years, 2 months ago by ssinha.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 30, 2017 at 7:42 am #1059401You can share the FTP account also so I will take a look.
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
August 30, 2017 at 1:46 pm #1059478FTP info being sent privately.
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
August 30, 2017 at 1:48 pm #1059479This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 31, 2017 at 8:32 am #1059627I updated the css into ‘custom.css’ file:
.com_content.view-article .article-main .img_caption p.img_caption { display: none; } .article-main .article-intro-media .item-image { max-height: 100%; }
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
August 31, 2017 at 12:32 pm #1059683Thank you Saguaros, looks much better.
One quick question though, how can I change the background color of the caption? Right now it’s kind of transparent grey, I would like it to be of different color (say, red with white font) with no transparency at all.
Appreciate your help very much.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 1, 2017 at 6:36 am #1059825Hi,
You can define color for it:
.article-main .article-intro-media .img-caption { background-color: #cc0000; color: #fff; }
then change to your desired color.
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
September 1, 2017 at 11:30 am #1059896Thank you very much Saguaros. That worked perfectly. Appreciate your help in resolving these issues. We can close this topic now.
AuthorPostsViewing 13 posts - 1 through 13 (of 13 total)This topic contains 12 replies, has 2 voices, and was last updated by ssinha 7 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Intro image size in articles
Viewing 13 posts - 1 through 13 (of 13 total)