Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In line 64 of the page.tpl.php the conditions for printing the class are not correct:
<?php if ($logo && !$site_slogan): ?>class="logo-picture-true-slogan-false"<?php endif; ?>
<?php if ($logo): ?>class="logo-picture-true"<?php endif; ?>
So if there is no $site_slogan both class-attributes are printed:
<h1 class="logo-picture-true-slogan-false" class="logo-picture-true"><a href="/" title="Home">MySite</a></h1>
And this causes the HTML-Validation-Error: Duplicate specification of attribute "class"
Comments
Comment #1
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi,
I fixed that html error by replacing following code in page.tpl.php
With the following code :
HTH!!
Rgrds,
Deepika Chavan.
Comment #2
smitty CreditAttribution: smitty commentedSeems to work correctly. Thank you!
Will this be in the next release?