Solved Templates

newskit intro articles image, not fine at all

Asked by gralfitox 2 years ago Last activity 2 years ago

Hi, I came again with this question.
I want the intro articles to show the images and links image, because if I add an image in the tab helix blog...., then the crop messes the image. Though I need the helix image as well.
is ther any way to tell, via template coding, the tempalte to get the first image instead getting the helix one?

Accepted answer

Marked as the solution
Toufiq Senior Staff

Add this css code inside the custom.css file.

.layout-blog .blog .items-leading .carousel .carousel-inner .newskit-item-wrap .intro-image > a img {
    width: 300px !important;
    object-fit: cover;
    height:auto;
}

19 more replies

gralfitox Asked this

I am recreating your articles, but the image inserted into helix log, is not displayed properly, now it is in my live site, cause I have added a custom code, which is

.layout-blog .blog .items-leading .carousel .carousel-inner .newskit-item-wrap .intro-image > a img {
 width: 300px !important;
      object-fit: cover;
}

but I thnk something is going on cause the code is calling a large image instead a _thumbnail one

Toufiq Senior Staff

Can you share a screencast video about the full scenario?

gralfitox Asked this

in the hidden content

Toufiq Senior Staff

You have added css code inside the custom.css file. Caqn you tell me why did you add cover property?

.layout-blog .blog .items-leading .carousel .carousel-inner .newskit-item-wrap .intro-image > a img {
 width: 300px !important;
      object-fit: cover;
}
gralfitox Asked this

yes, I have told you up in the thread. I added the cover property because...

please disable it live and take a look to what happens, that´s the best explanation.

This thread is a question I have answered some time ago, and it wasn´t fixed by your team, so I tried to solve it myself and came up with this temporary fix,the cover property, it was the only way to solve the squashed image issue

gralfitox Asked this

hi?

gralfitox Asked this

hello?

Toufiq Senior Staff

Did you change your site URL? Cause, I can't visit your website. Thanks

gralfitox Asked this

nope, please try again

Toufiq Senior Staff

Please check again and let me know. Thanks

Log in to reply.