Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 08h 53m 32s
Claim 50% off
Solved SP Page Builder

Remove 100px Padding

Asked by jclivingstone 1 year ago Last activity 1 year ago

I need help removing the 100px padding between the page header and the body of a Joomla article.

sp-main-body {

padding: 100px 0

}

I don't want a site wide fix, I only want it on certain articles - not pagemaker pages.

Any suggestions?

Accepted answer

Marked as the solution
jclivingstone Asked this

Thanks. Sorry, I'm not as technically proficient as your other customers of 10 years.

Paul Frankowski Senior Staff

hopefully, you got the css code anyway.

7 more replies

Ofi Khan Staff

Hello jclivingstone,

Thank you for reaching out to our technical support forum. I’m sorry to hear about the trouble you’re experiencing.

Please use this CSS to the articles where you want to remove padding.

.view-article #sp-main-body {
    padding: 0px;
}

Best regards

Paul Frankowski Senior Staff
1 year ago · edited

BTW

In Helix Ultimate Manual > Customization Tips (How to ...) we have whole tip about that, please read it in free moment.

Direct links >>

In the same guide you can find 42+ other useful tips :)

jclivingstone Asked this

Yes. I've read what's there.

I know that placing the CSS in Custom CSS section of the Helix template will apply it sitewide.

However

I dont want to apply it sitewide. I only want to apply it to specific pages.

How can I do this?

Paul Frankowski Senior Staff
1 year ago · edited

Also very easy.

As you know (or not yet?) each menu item has it's own unqiue id class used in body class (just preview source code).

info_2748_2025.gif

In above example (from your site) you can see "itemid-111" right, so you have to use

.itemid-111 #sp-main-body {padding-top: 0px;}

you can also (alternative) use

.view-article.itemid-121 #sp-main-body {padding-top: 0px;}

info_2749_2025.gif

yes, both syntax are fully correct/working if correct item ID is used. It's how Joomla works, webmaster life easier if you know where to look :)


Unfortunately, there is no separate class for the selected category, which is a bit of a handicap.

Paul Frankowski Senior Staff
1 year ago · edited

But I told you how to check and how you should do that.
Sadly, you need a fish, not fishing rod :/


.view-article.itemid-122 #sp-main-body {padding-top: 0px;}
.itemid-122 .article-details .article-can-edit {margin-bottom: 0px;}
Ofi Khan Staff

Just checking in to see if you have feedback on the provided solution. If the answer resolved your query, you can mark it as accepted to close the post and guide others with similar questions. You’ll find a button to accept answers below each comment.

If you need further assistance, feel free to let us know!

Log in to reply.