Body Overwite - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Body Overwite

C

centiva

Helix Framework 3 years ago

Hi can you please tell me where to find the following code in order to ovverride it ?

<section id="sp-main-body">
    <div class="container">
        <div class="container-inner">
            <div class="row">
                <main id="sp-component" class="col-lg-12 ">

I want to find the file that renders

<section id="sp-main-body">
    <div class="container">
        <div class="container-inner">

thanks in advance

-2
5 Answers
Pavel
Pavel
Accepted Answer
3 years ago #53696

Hi. I am not an employee of support. But as far as I know the generation of sections occurs from template settings (layout Builder). It is the basis of the template and it is not possible to override since this code ganerates dynamically. There is not layout php file for override ready.

What do you want to achieve? I think in most cases CSS is enough.

0
C
centiva
Accepted Answer
3 years ago #53698

Hi, thanks for the reply

I want to find out the way it creates sections in order to change some views from container to container-fluid

0
Pavel
Pavel
Accepted Answer
3 years ago #53702

Here is the settings

You can create copy of template style with different settings and asign it for different menu items.

Or you can use section ID / your own css class in custom css code

Something like

#sp-main-body .container {
    max-width: 100%;
}
/* or */
.your-own-class .container {
    max-width: 100%;
}
0
C
centiva
Accepted Answer
3 years ago #53703

Thank you

thats the way i did it but i prefer do it with code (easier to maintain)

Thanks again

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #53819

Hello centiva

You can go this location: plugins/system/helixultimate/layouts/frontend/generate.php and customize. But be careful about Helix updates. If you update, then this file will be overwritten by our code. There is no way to prevent this.

Best regards

0