Problem with CSS file
-
Hello,
there exists a problem with the CSS file. I would like to use W3 Total Cache to minify this CSS (of course) and usually it works well with plugins. But this plugin uses such an URL for the CSS file (I replace the domain and some other values with XXXXX):
https://www.XXXXX.de//wp-content/themes/xxxxx/multi-column-tag-map/mctagmap.css?mctm_ver=12.0.4
As you can see there is 1) a double-slash directly after the domain. This is because in your “mctagmap.php” there is this line:
echo '<link rel="stylesheet" href="'.home_url('/').substr($mctagmapCSSpath, 1).'/mctagmap.css?mctm_ver='.$mctagmapVersionNumber.'" type="text/css" media="screen" />';
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
If you change “home_url(‘/’)” to “home_url()” this double-slash gets away – as it has to.
And you can see this “?mctm_ver=12.0.4” at the end of the URL, which is not necessary. If you change “/mctagmap.css?mctm_ver=’.$mctagmapVersionNumber.” to “/mctagmap.css” it gets away, too.
This is the solution – but with every update of your plugin I have to make these changes again and again. Could you please fix this issue with an update?
Regards
- The topic ‘Problem with CSS file’ is closed to new replies.