Target #sp-main-body Individual Page or Blog Layout - Forum | JoomShaper
Solved Helix Framework

Target #sp-main-body Individual Page or Blog Layout

Asked by Graeme 4 years ago Last activity 4 years ago

Hi is it possible To target a page or blog layout spesifically #sp-main-body In other templates I was able to add a page class in the menu and this would allow me to control the background page colour individulally

Is there any way i can do this?

When i add a page class in the menu Page Display the class is limited to the blog div and does not seem to target the page

Accepted answer

Marked as the solution
Ofi Khan Staff

Hello Graeme

You have to show Page Heading for the page.

https://prnt.sc/tquUX921BJw_

Then you can target like this (follow the example). The test-page class is added on the body element.

.test-page #sp-main-body{
    width: 50%;
}

Best regards

2 more replies

Graeme Asked this

Hi Thanks for this very helpful .test-page .page-header {display:none;} just added this to get the effect I required

Ofi Khan Staff

Yes, this is the way. You are welcome 😊

I have a humble request. It would be very kind of you if you can manage some moment to give us feedback on Joomla Extension Directory. This will inspire us to improve.

Log in to reply.