Add Custom JS, JS Libray On Specific Pages - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Add Custom JS, JS Libray On Specific Pages

Nasir Khan

Nasir Khan

SP Page Builder 4 years ago

I am using page builder to create some pages. I need to add some JS, JS Libray on some specific pages. I know I can add custom JS from the template, but that will load the script for all the pages. Whereas I only need to enable the script to some specific pages only.

Can you please tell me to refer some doc to do this task?

0
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #5019

Hi,

Yes, I described it inside SPPB documenation in section "How To Tips" - "How to use custom JS" easy to find: https://www.joomshaper.com/documentation/sp-page-builder/sp-page-builder-3/how-to-tips

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #5022

We can consider advanced custom code addon but for SPPB 4.x - not 3.x series.

0
Nasir Khan
Nasir Khan
Accepted Answer
4 years ago #5030

Thanks for the prompt response.

I already solved the issue by using the Raw HTML addon.

0
Nasir Khan
Nasir Khan
Accepted Answer
4 years ago #5046

Raw HTML works on the pages. But if I use pagebuilder on the article and include the library links that page became unusable. It shows some code above the page.

How to solve this?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #5133

Raw HTML addon is only for clean & simple HTML code, if you added there different code - your fault, sorry, you have been warned 2x, by addon description and documenation.

How to fix it now: edit Raw HTML addon in back-end editor (Admin area), remove your custom code and use tips from documenation. If you cannot edit that page any more, use PHPMyAdmin and remove code manually.

0