This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: replacing prettyphoto, other scripts…

#1914
Jason Bobich
Keymaster

your github link is 404?

Yup, private repository. Can’t give the product away for free. 😉 … I just put the link for my own reference for later if I’m searching through.

I noticed a minor gotcha in that the priority here is 5, so previous instructions to hook at 9 to override JS should be updated to take this into account.

The priority 9 I mentioned above was for the javascript files only. The CSS files have a little more going on.

So yeah, if you were looking to accomplish overriding the javascript files and CSS files from one function (which obviously makes sense), you’d just hook it to priority that is before the CSS files, as well. So, in that case 4 would be a good number to use there.

So in the end, I have to both dequeue the prettyphoto styles and scripts, as well as hook the filter. I would suggest modifying your dependency filter routines to fully control loading of these various components. Then a simple filter hook is all that’s needed to modify the output.

Yeah I see where the confusion is on some of these things in what you’re trying to do. These dependency arrays were added to make life easier in other aspects of including assets, but I guess add an extra step for those doing what you’re trying to do.

I’ve got this in the next update, and also modified how those dependency arrays get built.

See here: http://dev.themeblvd.com/tutorial/removing-framework-scripts/

If you have any thoughts on this, feel free to share, as this change is not officially published just yet.