{Check Theme Plugin} text domain does not match the theme's slug
I have these two issues:
1: WARNING: Your theme appears to be in the wrong directory for the theme name. The directory name must match the slug of the theme.
2: REQUIRED: The
title
tags can only contain a call to wp_title(). Use the wp_title filter to modify the output
For #1
Based on what I searched, the text domain is the theme name both of the folder and in style.css. I have checked and they all are the same. Is it because I am using Wamp?
I have also tried inserting this to functions.php and to header.php but that resulted in the same error: load_theme_textdomain('themename', get_template_directory() . '/languages');
Wordpress did state this but it is unclear to me that text domain is solely for WordPress.org and not for externally and locally hosted domains or is universal:
Themes that are hosted on WordPress.org the text domain must match the slug of your theme URL (wordpress.org/themes/). This is needed so that the translations from translate.wordpress.org work correctly.
The text domain name must use dashes and not underscores and be lowercase. For example, if the theme’s name My Theme is defined in the style.css or it is contained in a folder called my-theme the text domain should be my-theme.
The text domain is used in three different places:
In the style.css theme header As an argument in the localization functions As an argument when loading the translations using load_theme_textdomain() or load_child_theme_textdomain() style.css theme header #style.css theme header The text domain is added to the style.css header so that the theme meta-data like the description can be translated even when the theme is not enabled. The text domain should be same as the one used when loading the text domain.
Source: https://developer.wordpress.org/themes/functionality/internationalization/#text-domain
For #2
I have removed the title and /title
tags, yet that the error is still shown.
Please help explain, thanks.