404 Error Contact Form 7 on WordPress

this is quite a common issue with htaccess file blocking malformed un-shlashed url such as cf7 wp-json requests. Therefore check your .htaccess file in your root folder to see if this is the case with your server too, find the section in your .htaccess that is adding a “https://wordpress.stackexchange.com/” at the end of requests # … Read more

Detect When User Reads Full Article? [closed]

Haven’t seen a plugin that does this, since each theme would differ. But for a custom solution that would work with Google Analytics events see #9 here: https://searchenginewatch.com/sew/how-to/2287906/10-google-analytics-custom-events-that-track-the-untrackable OP also found this more specific article: http://cutroni.com/blog/2014/02/12/advanced-content-tracking-with-universal-analytics/ (These are in comments above, just posted to make it faster for those looking for something similar to find … Read more

Why my javascript code not working for the dashboard of wordpress admin?

You need to add your script into your functions.php function my_theme_scripts() { wp_enqueue_script( ‘my-great-script’, get_site_url() . ‘/js/my-great-script.js’, array( ‘jquery’ ), ‘1.0.0’, true ); } add_action( ‘admin_enqueue_scripts’, ‘my_theme_scripts’ ); Then, in your file (my-great-script.js), you will have to have something like this: jQuery(‘.dash_appoint_r’).on(‘click’, function(){ alert(‘hello’); });

wp.editor.initialize does nothing

This was way simpler than I thought it was – even on post.php, you need to run wp_enqueue_editor() before using wp.editor in JavaScript. I had assumed that I wouldn’t need to do that, because an editor was already loaded.

Exclude JS file from 404 error page

There is is_404(). I normally use it to do just the opposite, to add CSS and JS animations which are specific to the 404 error page. In your case that would be: function wpse_339946() { if ( ! is_404() ) { wp_enqueue_script( ‘tracking-js’, get_template_directory_uri() . ‘/js/tracking.js’ ); } } add_action( ‘wp_enqueue_scripts’, ‘wpse_339946’ );