How To Override The "renderFeature()" Function? - Question | JoomShaper

How To Override The "renderFeature()" Function?

LA

Ludwig Alberter

Helix Framework 11 months ago

My customer wants to have a different behaviour at the contact info in the top bar. I figured out, that I could amend the contact.php script in the templates' "features" directory. But how to protect it from being overwritten by Helix updates? Is there a way to override this script securely?

0
3 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 11 months ago #175719

Hi there!

Thanks for your query.

You can use the custom javascript field within the Advanced tab of the Template Options or you can create a custom.js file within the template.

Here is the documentation:

https://www.joomshaper.com/documentation/helix-framework/template-views-override

Hope this helps anyways!

Best Regards

0
LA
Ludwig Alberter
Accepted Answer
11 months ago #175869

Thanks for the answer - my question was perhaps misleading: I didn't mean to override the JS function itself. I just wanted to protect any changes at the /features/contact.php script. I think I can do this by using a customized header file.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 11 months ago #175895

Yes you can use customized header file.

0