Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 21h 40m 22s
Claim 50% off
Awaiting an answer Templates

Helix - Article title above the article image

Asked by Mohamed Amira 4 years ago Last activity 1 year ago

Hello,

I have downloaded Helix Framework, and I would like please to put the Article Title above the article image and not below. I searched every where in joomla option but I didn't find.

Thanks

28 replies

Paul Frankowski Senior Staff
4 years ago · edited

Hi,

it's hardcoded inside template article view.
If you have at least basic php/html skills you can override, change order of rows in that file:

plugins\system\helixultimate\overrides\com_content\article\default.php

Paul Frankowski Senior Staff

As alternative method, who knows maybe easier, add & use this custom CSS:

.view-article  .article-details {display: grid;}
.view-article .article-details .article-header {order: 1;}
.view-article .article-details .article-full-image {order: 2;}
.view-article .article-details .article-info {order: 3;}
.article-details .article-ratings-social-share {order: 4;}

then edit file: plugins\system\helixultimate\overrides\com_content\article\default.php

find line:
<div itemprop="articleBody">

and change into

<div itemprop="articleBody" style="order:5;">

Pavel
4 years ago · edited

Hi. Not need edit php.

Here is solution

/* for articles list */
.article-list .articleBody, .article-list .article-body {
    display: contents;
}
.article-list .article {
    display: flex;
    flex-direction: column;
}
.article-list .article-header {
    order: -1;
    margin-bottom: 20px;
}
/* for single article */
.view-article .article-details {
    display: flex;
    flex-direction: column;
}
.view-article .article-header {
    order: -1;
    margin-bottom: 20px;
}
Paul Frankowski Senior Staff
4 years ago · edited

Thx Pavel, I added it inside Helix Ultimate guide in "Customization Tips" section.

Pavel

Hi Paul. You are wellcome

Marek

Hi Pavel,
It is possible via CSS name and description to place in the image (not above, not below but inside the image)?
Thank you for help.

Pavel
4 years ago · edited

Hi Marek.

Yes it's possible.

Something like this:

.article-list .article {
    display: grid;
    grid-template-columns: 1fr;
}
.article-list .article>a {
    margin: -20px;
    position: relative;
    z-index: -1;
}
.article-list .article>a,
.article-list .article-body {
    grid-row: 1/2;
    grid-column: 1/2;
    color: #fff !important;
}
.article-intro-image {
    margin: 0 !important;
    height: 100%;
}
.article-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-list .article-header a {
    color: #fff !important;
}
.article-list .article>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

Result

Marek

Thank you for quick reaction.
I use Template "Innovate" and the source code contains DIV "Article-Media" and it does the problem. I tried to modify CSS but without success.
Would you be able to check where I am doing a mistake?
Dev webpage is: http://j2022updates.janicko.com/index.php/blog

.article{
    display: grid;
    grid-template-columns: 1fr;
}
.article .article-media{
    display: grid;
    grid-template-columns: 1fr;
}
.article .article-media>a {
    margin: -20px;
    position: relative;
    z-index: -1;
}
.article .article-media>a,
.article .article-body {
    grid-row: 1/2;
    grid-column: 1/2;
    color: #fff !important;
}
.article-intro-image {
    margin: 0 !important;
    height: 100%;
}
.article-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article .article-header a {
    color: #fff !important;
}
.article .article-media>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
Pavel

Hi Marek. Delete this

Marek

Thank you very much. It helped me very much. Link to "A" I didn't seem.
I don't want to abuse your willingness, but I struggle with "Leading Article" for two days.
I want to achieve the same effect but to be stretched to a 100% full screen.
And I would like to ask or Bootstrap enabling through CSS to discard the order of details about the article. I would like to achieve the date of the category and then the title of the article.

Log in to reply.