Jump to content

Find code for hook


Recommended Posts

hello

i don't understand the question

but: if you want to add js files to your header

just use "displayHeader" hook and AddJs function from context class

As I said new to PS. I want to alter/remove a script that is added through the hook. Where is the context class?

Link to comment
Share on other sites

if you want to remove js scripts from head

go to modules > positions

search there for "displayHeader" section

and "unhook" unwanted modules from this section

 

then module will not load js / css files in this hook.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...