Article Header Style 6 vs Minify JS

Posted in: Newsmag
Post count: 22

Hi,

we use the cache plugin wp-rocket and when we use the option “minify js” is displays not article Image when we use article style 6. Although I have the option to exclude JavaScript from caching but not script in a php file.

Now the question: is there a way specifically to create this script as a .js file?

Post count: 6535

Hi

This is a complex task and I can’t provide a solution now, sorry. The js code from single_template_6.php don’t work from an external file without other customizations. We try to keep all js code in two files: http://screencast.com/t/8SIwXmvW but in some cases it needs to be inserted in others files. If you want to move that code into an external file you will need some customizations and if you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.

Thanks for the message!

Post count: 22

Hi Andrei L.

thanks for your fast answer 🙂

hm this is is bad I thought so, unfortunately, does not work. Well then we can not use the template but there are plenty of other 😀

Post count: 6535

Hi

Sorry for that inconvenience.
Unfortunately minifying js could cause issues which why we don’t recommend using the minify option for js. We had numerous theme issues reported and the vast majority of them proved to occur because of minified js or when using CDN host services which can deliver old file content if not used right.

Thanks for the message!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.