Scroll to top

How to resolve the issue “Cookies are Blocked or Not Supported by Your Browser”

During the development process, mistakes frequently occur. The error notice “Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

When you connect onto your WordPress website, this error may appear.

How to fix the WordPress “enable cookies” problem is explained in this post.

Image

Please follow the below mention step to fix the “Cookies are Blocked or Not Supported” issue in WordPress

Step 1: Open and modify the functions.php file.

This file can be accessed and opened using either the cPanel file manager or an FTP programme like Filezilla. After logging in, navigate to your website’s theme folder, where functions.php is stored. The default location for this is wp-content/themes/theme-name/functions.php

Step 2: Fill out the file functions.php with code.

Copy the code below and put it at the end of the functions.php file.

if ( SITECOOKIEPATH != COOKIEPATH ) {

setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);

}

Image

Step 3: Keep the file

The error “Cookies are blocked or not supported by your browser” should no longer appear after saving and uploading the amended functions.php to your website. To use WordPress, cookies must be enabled.

Also Read about WordPress Security Tricks to Keep Your Website Safe

Author avatar
brandconn
https://brandconn.com
We use cookies to give you the best experience.