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.
I remove
tag from file ddblock-cycle-block-content-gradient-blue30p.tpl.php
line 72
<p><?php print $slider_item['slide_text'] ?></p>
line 76
<p><?php print $slider_item['slide_read_more'] ?></p>
This give me error on w3c markup validation (I have block on front page).
Comments
Comment #1
tracerul CreditAttribution: tracerul commentedoups, i talk about p tag
Comment #2
ppblaauw CreditAttribution: ppblaauw commentedIf you use a WYSIWYG editor which adds a <p> tag to these field you can delete them in the template file.
Hope this helps you further, please let me know.
Comment #3
tracerul CreditAttribution: tracerul commentedI don't have WYSIWYG editor,
<p>
tag is there in source code which download it form here http://ddblock.myalbums.biz/download , file gradient-blue30p.zip.Comment #4
ppblaauw CreditAttribution: ppblaauw commentedWhat validation error do you get?
Do you have a link to your Internet site?
Comment #5
tracerul CreditAttribution: tracerul commentedI use this link to validate my site http://validator.w3.org/ ,but now there is no problem because I remove this tags.Link to my site is in profile.Error it's like this : document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag and explication : One possible cause for this message is that you have attempted to put a block-level element (such as
"<p>" or "<table>"
) inside an inline element (such as "<a>", "<span>", or "<font>"
).Comment #6
bstrange CreditAttribution: bstrange commentedI am getting the same validation error using Upright20 and version 6.x-1.0-rc6 on the following page http://www.sanduskyspotlight.com/business-search . The error is reported from the same link posted by tracerul http://validator.w3.org/ and is as follows:
and is in reference to the following HTML output at line 284 (also 262, 285, 307 coresponding to the 3 DDBlock News Items):
<p><p>Proudly providing Sandusky and North East Ohio with quality, in-home, computer repair, service, training, webpage design services and maintenance plans.</p>
It seems that it doubles the initial
<p>
. It should be noted that Upright20 is being used out of the box (as best I can remember) with little or no modification to ddblock-cycle-block-content-upright20.tpl.php (the file that I believe is causing these errors).My question is, can I simply delete the
<p>
tags from ddblock-cycle-block-content-upright20.tpl.php as tracerul indicated they did?I would assume if that is the solution, then the current ddblock-cycle-block-content-upright20.tpl.php (33-81)
the following sections should be changed to:
(59-61)
to
and (63-65)
to
So, do you think it's OK if I just make the changes listed above to resolve the validation errors? Or are there other adjustments I can make to fix the errors beyond simply deleting the
<p>
tags?Let me know what you think or if you need any more information.
Thanks! :)
Edit to Add: I have no WYSIWYG editors installed that would have added their own
<p>
tags? Is it possible another module is adding the double 'p'?Also, I have another validation error (warning) related to DDBlock:
and it references the following section of HTML output (323-327):
I wasn't sure if I should start a seperate issue for lookup purposes or leave it here with the other validation errors...
Comment #7
ppblaauw CreditAttribution: ppblaauw commentedComment #8
bstrange CreditAttribution: bstrange commentedThanks! That worked finally :)
Comment #9
ppblaauw CreditAttribution: ppblaauw commentedLooks like the ddblock-cycle-pager-content-upright20.tpl.php and ddblock-cycle-block-content-upright20.tpl.php from above are not used.
Do you maybe have another copy of these slideshow template files in your drupal installation.
Maybe you could change something obvious to find out if the template files are used.
Also with the theme developer module you could find out which tpl.php files are used.
Comment #10
bstrange CreditAttribution: bstrange commentedWow, you are always on here! Your reply is correct, there were copies of those files in both the sites/all/mytheme/custom folder as well as sites/all/mytheme/custom/modules/ddblock, aparently, I replaced the wrong one. Once I replaced it, it validated correctly.
Sorry I edited and changed my previous post, I didn't think it held anything that would help users with similar issues in the future and figured I'd save you the extra early morning reading. (I can revert it to what I originally posted if you would like)
Thanks again, and once again I am amazed with how dilligent you are with your issue queue :)
Comment #11
bogorman CreditAttribution: bogorman commentedDon't know whether I should have opened a new thread as I am using ddblock 7x-1.0
When I use www.validator.w3.org I get the error:
No p element in scope but a p end tag seen
am using ddblock-cycle-upright10p.css. I do use creditor to edit the body content but this seems to be an error around the title field - sorry, I am not an expert!
Would value your advice. The (test) site is:
Comment #12
bogorman CreditAttribution: bogorman commentedSorry, typo in my last post. The editor is CKEditor.
Comment #13
bogorman CreditAttribution: bogorman commentedHave noticed that the extra tags are in fact around the content in the Pager Item Text field, not the Title field.