visual-portfolio | Portfolio layouts visual editor with Gutenberg | Frontend Framework library
kandi X-RAY | visual-portfolio Summary
kandi X-RAY | visual-portfolio Summary
Portfolio layouts visual editor with Gutenberg support
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of visual-portfolio
visual-portfolio Key Features
visual-portfolio Examples and Code Snippets
Community Discussions
Trending Discussions on visual-portfolio
QUESTION
On wordpress, using GeneratePress free template, I'm trying to push my custom script after all others. The big problem is that all the scripts of a plugin (Visual Portfolio) are always loaded at the very end, after my scripts.
I tried to put a very high $priority parameter in the add_action() functions but it doesn't work.
...ANSWER
Answered 2020-Mar-19 at 21:45Here's idea, js and css files in WP use different technique to figure out in what order js\css files should be loaded.
here's function
wp_enqueue_script('custom-js', get_stylesheet_directory_uri() . '/js/custom-js.js', array('js-handle-of-some-dependency','js-handle-of-some-other-dependency'), true);
Each script has it's handle, it's first argument to this function, in your case it's custom-js
.
Based on digging into plugin's code it's main js has handle visual-portfolio
So you can just enqueue your script with setting it's handle as dependency.
And final solution will be:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install visual-portfolio
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page