Remove unnecessary new line
-
If there are no breadcrumbs to be displayed the plugin echos the following:
\breadcrumb-navxt\class.bcn_breadcrumb_trail.php
Line: 1179-1181//Helps track issues, please don't remove it $credits = "<!-- Breadcrumb NavXT " . $this::version . " -->\n"; echo $credits . $trail_str;
And here’s the problem, there’s an \n at the end of the version info outputted and therefore it’s impossible to use the pseudo class :empty on the parent element.
It’s because
"<!-- Breadcrumb NavXT 5.7.1 -->\n"
is not equal with empty, because of the new line, therefore the :empty class doesn’t take effect.Please remove the \n.
See:
https://developer.mozilla.org/en-US/docs/Web/CSS/:empty
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove unnecessary new line’ is closed to new replies.