scrolltop always 0, can’t trigger script

I guess body.scrollTop is deprecated in strict mode. Please use documentElement.scrollTop if in strict mode and body.scrollTop only if in quirks mode. So I would suggest you to use document.documentElement.scrollTop. also let us know when are you using this statement? show us full code and your console error if possible Please try the below code … Read more

Redux Framework has an embedded demo. Click here to activate the sample config file

Problem solved! Helped official support. It was necessary to add the following code. add_action( ‘redux/loaded’, ‘remove_demo’ ); /** * Removes the demo link and the notice of integrated demo from the redux-framework plugin */ if ( ! function_exists( ‘remove_demo’ ) ) { function remove_demo() { // Used to hide the demo mode link from the … Read more

How to show Recent Page instead of Post?

I have a ready made custom widget for recent page it was made for recent posts .. So please change the post text to page in the below code. View thoroughly , only change the text that is for display purpose. Add this code to your functions.php file Goto appearance->widgets you will see you newly … Read more

load_plugin_textdomain error

The plugin calling load_plugin_textdomain() the wrong way: load_plugin_textdomain( ‘custom_smilies’, PLUGINDIR . “https://wordpress.stackexchange.com/” . dirname(plugin_basename(__FILE__)) . ‘/lang’ ); You have to change the code to: load_plugin_textdomain( ‘custom_smilies’, false, plugin_dir_path(__FILE__) . ‘/lang’ );

Override global query results without hooks

It is quite hard to understand what you need to do here, but you need to look at the following Do not use the global variables as local variables, it breaks the global variables and causes issues with the loop. It is also quite hard to debug when you run into issues. The only global … Read more

JS Support Ticket – Auto create WP account

wp_create_user is your friend! It takes a username, password, and email: wp_create_user( $username, $password, $email ); And here’s an example: $user_id = username_exists( $user_name ); if ( !$user_id and email_exists($user_email) == false ) { $random_password = wp_generate_password( $length=12, $include_standard_special_chars=false ); $user_id = wp_create_user( $user_name, $random_password, $user_email ); } else { $random_password = __(‘User already exists. … Read more

Missing Argument

You didn’t specify how many arguments your function accepts when you used add_filter: add_filter( $tag, $function_to_add, $priority, $accepted_args ); Your code only passes a $tag and a $function_to_add, but it doesn’t tell WordPress what priority it should be, or how many accepted arguments your function takes. You need to fix that. If you don’t provide … Read more