LinkedIn Follow-button Screwed My Backend - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

LinkedIn Follow-button Screwed My Backend

Alexander Schuch

Alexander Schuch

SP Page Builder 3 years ago

Hi, I wanted to add a LinkedIn Follow-button on my website. Therefore, I created a raw HTML-module in my DE-footer, and added following script (I changed the word "script" of the code, otherwise it won´t let me post here):

<s... src="/platform.linkedin.com/in.js" type="text/javascript"> lang: de_DE</scr...>
<s... type="IN/FollowCompany" data-id="000000000" data-counter="right"></scr...>

Well - it works on the frontend. But in the admin backend, it totally screwed my module. It shows text strings over many lines - like this:

","class":"text-center","global_background_type":"none","global_background_gradient":{"color":"#00c6fb","color2":"#005bea","deg":"45","type":"linear"},"global_background_image":{"src":""},"global_background_repeat":"no-repeat","global_background_size":"cover","global_background_attachment":"inherit","global_background_position":"50% 50%","global_use_overlay":0,"global_overlay_type":"overlay_none","global_gradient_overlay":{"color":"rgba(127, 0, 255, 0.8)","color2":"rgba(225, 0, 255, 0.7)","deg":"45","type":"linear"},"global_pattern_overlay":{"src":""},"global_overlay_pattern_color":"","blend_mode":"normal","global_user_border":0,"global_border_width":"","global_border_radius":0,"global_margin":{"md":"0px 0px 0px 0px","sm":" ","xs":" "},"global_padding":{"md":" ","sm":" ","xs":" "},"global_boxshadow":"0 0 0 0 #ffffff","global_use_animation":0,"global_animationduration":"300","global_animationdelay":"0","global_custom_css":".bottom-footer-list li {\n\twidth: auto !important;\n\tdisplay: inline-block !important;\n\tvertical-align:

I cannot work on this module anymore, i.e., I cannot remove the script anymore.

What shall I do? Thanks!

0
8 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #76067

Hello Alex

I cannot access your administrator. Please share administrator link in the hidden content box.

Best regards

0
Alexander Schuch
Alexander Schuch
Accepted Answer
3 years ago #76091

I have shared it, pls. check the link in the hidden sector, thank you.

EDIT: added https:// - seems without, it didn´t forward correctly...

And - it is about this module:

.../administrator/index.php?option=com_modules&view=module&layout=edit&id=164&client_id=

0
Alexander Schuch
Alexander Schuch
Accepted Answer
3 years ago #76252

Hi, did you have a chance to check? Thank you.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #76342

I have checked the module. Because of the script tag, this might happened. Please script tag from raw HTML addon.

0
Alexander Schuch
Alexander Schuch
Accepted Answer
3 years ago #76343

Hi, what do you mean with "Please script tag from raw HTML addon."?

And: How can I remove the script from the module? Or in general: How can I add scripts in SPPB?

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #76528

Oh pardon my mistake. I mean to say you have to remove script tag. You cannot use script tag in raw HTML addon. You can load it in Template Settings. Go to Helix Template Options -> Custom Code -> Before Body or After Body and there you can use script tag.

0
Alexander Schuch
Alexander Schuch
Accepted Answer
3 years ago #76562

Thank you Ofi, but this is not something like a counter or Analytics snippet.

The JS I wanted to add is from LinkedIn - it will show a box on the frontend, and when the user clicks on it, then the user will be forwarded to the company page on LI and automatically "likes the page".

You know, how to place this JS-box on the site with SPPB?

Thanks

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #76749

You are welcome 😊

Please follow this documentation to use Custom JavaScript on SP Page Builder pages.

0