How to add style to specific page only in component without affecting rest of the look ?

sunny sunny Posted in Technical Support 7 years ago

How to add style to specific page only in component without affecting rest of the look and without using classes or ids for all styles ?

is there a way to link styles to only specific page if style are put in component rest of the look also changes, i dont want to use classes or id for every single style because there are many styles it would take long time to put class and id with them there are many, i want to link whole style sheet to only specific page in new component. similar to wordpress page linking for styles

WordPress themes include the page ID as a body class name

<body class="page page-id-731 page-template-default page-shadow responsive-fluid ">
linking page like this

.page-id-731 .container {
margin-left: 0;
}

is there anything similar to this in OSSN?

Replies
Indonesian Arsalan Shah Replied 7 years ago

Hi, we didn't supported such a feature at the moment. However if you submit a request our team shall take a look.

Further you can take a look at ossn_get_context() php function which return the current page handler name.