404 not working, going to homepage; how to fix?

In my case, the issue was the multi-site config attribute NOBLOGREDIRECT This had been set in wp-config.php… // Redirect non-existent Multisite subdomain calls to www primary site define( ‘NOBLOGREDIRECT’, ‘http://www.example.com’ ); This prevents a valid 404 appearing since it is always interpreted as a bad call to a subdomain. There are two solutions: Comment it … Read more

Website Theme Flickering in Chrome

Nice site. For starters, it looks like you might have some issues with some missing files and some javascript errors. This could be competing with the smooth loading of your site. If you ‘Inspect’ your site (right-click and ‘Inspect’) you’ll see a bunch of errors, and the errors multiply (for jquery.smoothscroll) as you scroll up … Read more

How to make wordpress theme option page in columns?

If you’re building a custom menu page for your theme options, then you can first use add_menu_page() to register the menu page. Then to use custom styles and scripts on that page, you need to enqueue them on admin_enqueue_scripts action. Something along these lines, function my_enqueue_admin_assets() { $screen = get_current_screen(); // only enqueue assets on … Read more

Can’t embed certain youtube videos into theme

I had recently similar issue with Divi and embedding videos. At the end I realized its because oEmbed issues in WordPress sites running on host with both IPv4 and IPv6 sites. Either you can add this code to your functions.php to fix this: add_action( ‘http_api_curl’, function( $curl_handle ) { curl_setopt( $curl_handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); }); … Read more

theme installation not working

This error is generated after a failed call to wp_remote_get. In other words, WordPress is trying to retrieve a file from somewhere and doesn’t get it, either because the server doesn’t respond or the file doesn’t exist. The problem may be with the remote server, or your own server’s SSL is not properly configured, causing … Read more