Trending Now block has two divs with the same id

Posted in: Newspaper
Post count: 25

I would like to point out that in the file td_block_trending_now.php there is this code $buffy .= '<div id=' . $this->block_uid . ' class="td_block_inner">'; on line 34 and this code $buffy .= '<div class="td-trending-now-wrapper" id="' . $this->block_uid . '" data-start="' . esc_attr($navigation) . '">'; on line 61.
The problem is that the same id is assigned to two different divs, and this is an error, as the W3C validator reports.
I also want to ask you why in the code there are some paragraphs that are opened and not closed or viceversa. As you can see in the source of my site view-source:http://www.calcionews24.com/ -or better in the w3c validator- in the home page there are some of these. The page is created with Visual Composer simply putting some blocks above others (Block 15, Text with Title…) and not inserting html code manually. The version of the Newspaper theme I’m currently using is 7.6.1. Thanks.

Post count: 20688

Hi,

The W3C validator also reports hundreds of errors on websites like YouTube and even Google for example. The theme code is valid and does not provide any errors. I don’t think this should be a reason for concern in this matter.

Thanks

Post count: 25

Ok, I understand, even if there shouldn’t be two ids with the same name…
But for the paragraphs?

Post count: 22421

Hello,

What paragraphs would those be Please provide a specific example so we can investigate this issue.

Thank you!

Post count: 25
Post count: 22421

OK,

Please do not use the w3 test as it is no longer a trusted source. Test any major site you want and know and you will see all sorts of errors provided by this validator but that does not mean the code is not proper or created in the current standards. The theme code was tested again and again and I can assure you there are no coding errors in it.
Here is an example:
https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.amazon.com%2F
and another one:
https://validator.w3.org/nu/?doc=http%3A%2F%2Ftime.com%2F

Thank you!

Post count: 25

Ok, I don’t care about the validator, but it was only to point out that there are some paragraph errors in the code and the validator helped to see where.
I understand maybe it’s not so important, but the point is there are some paragraphs opened and not closed or viceversa.
Thanks.

Post count: 23312

Hello planetcappe,

I will pass this information and we will look into it for the next updates.

Thanks for your suggestion!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.