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.
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);
}
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.
To wrap up, it’s crucial to address the issue of blocked or unsupported cookies in your browser to ensure a smooth online experience. If you continue to face challenges, it’s advisable to seek expert guidance and solutions from a WordPress development company in India. This will assist in improving your website’s performance and enhance user experience.