body overwite - Forum | JoomShaper
Staff replied Helix Framework

body overwite

Asked by centiva 4 years ago Last activity 4 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

5 replies

Pavel
4 years ago · edited

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.

centiva Asked this

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

Pavel

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%;
}
centiva Asked this

Thank you

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

Thanks again

Ofi Khan Staff

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

Log in to reply.