How To Changer Some Custom Html/css Cod With A Module SP Page Builder - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How To Changer Some Custom Html/css Cod With A Module SP Page Builder

AS

Andre Szpyrka

SP Page Builder 3 years ago

Hello!

So, I have created some cool visual in HTML/CSS this week-end and I would like to integrate it in SP Page builder.

www.joomshaper.com/blog/how-to-create-a-custom-addon-for-sp-page-builder

I found this link to create new add-on, but where I put my HTML/CSS code? How can I change some tags or string from the admin.php/site.php of the add-on?

Here is a bit of my code, the HTML one.

<div class="container">
  <div class="card">
    <div class="percent" style="--clr:#04fc43; --num:50;">
      <div class="dot">             
      </div>
      <svg>
        <circle cx="70" cy="70" r="70"></circle>
        <circle cx="70" cy="70" r="70"></circle>
      </svg>
      <div class="number">
        <h2>50<span>%</span></h2>
        <p>HTML</p>
      </div>
    </div>
  </div>
  </div>

I would like to change dynamically the --clr, --num var and the "50" number between <h2> and <span>.

Thanks in advance.

0
1 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #72093

Hello Andre Szpyrka

This blog works for only Joomla 3. On Joomla 4 it does not work. Also sorry that we do not provide customization support.

Best regards

0