Useless CSS Code generation in SPPB4 - Forum | JoomShaper
Solved SP Page Builder

Useless CSS Code generation in SPPB4

Asked by Fabian W. 3 years ago Last activity 3 years ago

Hi Guys!

We discoverd a huge problem in SPPB4.

We have REMOVED all values from Addons on all Rows, but SPPB still generates all these empty values in CSS code with 0px. Here's what we get in CSS (inline & production mode):

#sppb-addon-1667916684705 h2.sppb-addon-title {
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}

Additional comment on that:
I've checked this twice and found another settings-section where these spacings are defined by default! Is it possible to get started (adding new addon) without these default values that are absoulutely senseless? Especially zero-values?

Also we discoverd generation of box-shadows with "0 0 0 #fff" even though it's turned off. This happend also when we delete #fff value. For example:

.sp-page-builder .page-content #section-id-1667902451900 {
  box-shadow: 0px 0px 0px 0px #FFFFFF;
}
.sp-page-builder .page-content #section-id-1667917795562 {
  box-shadow: 0px 0px 0px 0px #FFFFFF;
}

So. WHY? Could this sensless CSS generation be fixed with highest priority, please?

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

Hi,

Thanks. I fully agree with you.
I remember that I added that task for our developers team, but I will show them also your post.

Let's wait

2 more replies

Fabian W. Asked this

Yes, we will wait - hope it dosen't take long time. :-)

Paul Frankowski Senior Staff

I set higher priority

Log in to reply.