Offite.php And Template.css By Helix Ultimate - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Offite.php And Template.css By Helix Ultimate

SA

Sebastian Andreck

SP Page Builder 2 years ago

I adjust the offsite.php and the template.css, why does the SP Page Builder keep changing my values without me changing anything? Example: I do not remove the offsite.php or just rename it so that the normal maintenance mode takes effect again, but I use the maintenance mode of the Helix Ultimate template with its offsite.php

always happens after I install and activate the SP Page Builder. Before everything stays the way I set it. For example, I add some text before the login: class="coming-soon-login"> <img src="/templates/shaper_helixultimate/images/maintenance-mode.svg" alt="maintenance mode" width="500" /> <h1>Our site is currently being redesigned. Please try again later.</br>Or visit us at:<a href="/https://meine-domain.de"> My Domain</a></h1>

so far everything is good. Then in the template.css I change the value for img{display:block} to img{display:inline-block} everything OK as long as I don't touch the page builder. As soon as it is used, it turns "inline-block" into "block" again, sets nonsensical values such as border:none etc. If there is no border, this does not have to be specified. By changing from inline-block to block, the img will of course be left-aligned again. Please clarify what is happening here and why when you try to work with the page builder.

0
3 Answers
SA
Sebastian Andreck
Accepted Answer
2 years ago #122853

I would rather assume that a page builder, no matter which one, should leave the template.css files largely untouched, so that not everything is destroyed when you change the builder. And he stores his changes in user-defined files.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #122856

Hi Sebastian,

none of our component change files of Helix, sorry but this is a ridiculous suggestion.

But becuase template styles (css) are loaded AFTER sp page builder styles from template.css may override some styles from component, but to "fix / correct" that you can use custom.css as we suggest in Helix documenation. And as you can read in docs as well, template.css file is reloaded so please DO NOT manually edit that file.

Just create a new custom.css file and add there:

img {display:inline-block}

But this is not recommended for all images on whole website, so I suggest rethink your CSS concept and use that change for selected areas (classes) only.

If you want to make custom changes in offcanvas.php file - do it, and then change file permission from 644 to 444 - it will stop override by template update.

0
SA
Sebastian Andreck
Accepted Answer
2 years ago #122871

Thanks for the answer. Of course I create a corresponding custom.css. I was only in the test phase and didn't assume that installing a component would also immediately overwrite my template template. A component does not normally update a template template. If I had used a different template than the Helix Ultimate, I hope that no files would have been overwritten by the installation of the page builder. :-)

Apart from the fact that no one else is turning maintenance mode around.

0