where can i add custom script to stop header video from autoplay

If you have your own theme or a child theme then you can add this in script tags to one of your templates. I’d suggest your footer template, just after the call to <?php wp_footer(); ?> <script> jQuery( document ).ready( function() { jQuery( document ).on( ‘wp-custom-header-video-loaded’, function() { jQuery(“#wp-custom-header-video”).attr(‘autoplay’,false); }); }); </script> Note that I’ve … Read more

Upload mobi and epub file in the MEDIA of WP

Sounds like you need something like: add_filter(‘upload_mimes’, function ( $mimes = array() ) { $mimes[‘mobi’] = ‘application/x-mobipocket-ebook’; $mimes[‘epub’] = ‘application/epub+zip’; return $mimes; } ); to support the uploads, but you might have to adjust the mime types to your needs.

Media sizes aren’t being created – server config?

It looks like “Easy Apache” handles both Apache and PHP. Only a guess, but you have recompiled Apache/PHP without the needed image libraries– either GD or ImageMagick. Without those, the server cannot physically resize images. You can use a phpinfo() script to see if the libraries are present. If not, you will need to recompile– … Read more

Uploading non-media files?

There are two ways that error can be triggered ( source ): user does not have unfiltered_upload capability; WP does not like file type or extension. Latter is checked by wp_check_filetype_and_ext() function ( source ) that filters return through wp_check_filetype_and_ext hook to allow validation of additional file types.

Pagination not working on static page

Dear I have wasted my week on this problem, basically when you select static page as your home page in setting->reading of wordpress the complete behavior of listing things are changed, basically static pages are never meant for pagination the fact is when you call the $paged variable it will always return zero even if … Read more

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