Javascript not working on index.php but it is working on single post’s page

The proper way to enqueue a script is as follows: function mathJax_scripts() { wp_enqueue_script( ‘mathjax-js’, http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML’, array(), ‘2.7.1’, false ); } add_action( ‘wp_enqueue_scripts’, ‘mathJax_scripts’ ); I added the version number (2.7.1) and I flipped the final parameter to ‘false’ – that last parameter asks ‘add script to footer?’, true means yes, false means no. Then … Read more

Q&A lite plugin comments

We had a similar question which received a nice amount of answers and the main issue with the plugin you linked was that it had no comments for the questions and answers and if you look at the comments you will see that both types (questions and answers) support comments you only need to display … Read more

Best practices/popular methods for distributing a program with a plugin?

their rules specifically say Externally loading code from documented services is permitted. however all the related examples are about javascript or wordpress plugins. Management services that interact with and push software down to a site are permitted, provided the service handles the interaction on it’s own domain and not within the WordPress dashboard. which doesn’t … Read more

generate a static copy of the website footer html

I managed to do it like this: define(‘WP_USE_THEMES’, true); require( ‘../wp-load.php’ ); // Register all scripts and styles do_action(‘wp_enqueue_scripts’); // Execute footer hooks do_action(‘get_footer’); // output the js wp_print_footer_scripts(); wp_footer(); It also outputted the enqueued CSS files, so I tweaked it by making a helper function function dequeue_scripts_or_styles($slug) { wp_dequeue_style( $slug ); wp_deregister_style( $slug ); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)