Include Max mega menu Plugin into theme

If you include a plugin directly inside a theme then it will be rejected by both the WordPress.org theme directory and ThemeForest. You should use TGMPA for including plugins with themes: http://tgmpluginactivation.com/ Further reading: http://code.tutsplus.com/tutorials/using-the-tgm-plugin-activation-library-in-your-themes–cms-20901 Using TGMPA means the plugin remains a plugin, WordPress loads it in the normal ‘plugin’ way, and users will get … Read more

How to Dequeue All WordPress Assets

I’m not sure what more you need that the example there, and remember that some scripts are needed for stuff like the admin bar and are not enqueued if you are not logged in. function wpdocs_dequeue_script() { wp_dequeue_script( ‘jquery-ui-core’ ); } add_action( ‘wp_print_scripts’, ‘wpdocs_dequeue_script’, 100 ); This will dequeue the jquery-ui-core js. Adding more lines … Read more

How can I stop a plugin being updated?

Go into the PHP file for the plugin and change the information in the header comment. For example, this is the one from the Hello Dolly plugin that comes with WordPress: /** * @package Hello_Dolly * @version 1.6 */ /* Plugin Name: Hello Dolly Plugin URI: http://wordpress.org/plugins/hello-dolly/ Description: This is not just a plugin, it … Read more

Can you switch the type of WordPress site you have?

Generally self–hosted version of WordPress is not considered to have types. Other than multisite for hosting multiple sites on single WordPress installation. From quick look you seem to have used hosted site from a company that built on top of WordPress. To switch to a generic self–hosted WP installation you would need to: Acquire standard … Read more

Adding json as params to shortcode

You could create a shortcode with only one attribute and that attribute could be the ID of a custom post type or the name of a site option: [example id=”123″] Multiple instances of the framework If you need to have multiple instances of that js framework with different attributes, then you could create a custom … Read more