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?
Staff replied
Helix Framework
How to override the "renderFeature()" function?
2 replies
Mehtaz Afsana Borsha Staff
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
Ludwig Alberter Asked this
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.
Mehtaz Afsana Borsha Staff
Yes you can use customized header file.
Log in to reply.