Several commentforms on one single post

Posted in: Newspaper
Post count: 5

Hi. Looked through the topics but could not find what I was looking for.
Anyway to my question. I have a site I am producing with lots of comments per post. Nothing unique about that. I would however like to have four versions of the single post (desktop, tablet landscape, tablet portrait and phones) which showcases the comments to that specific post. In the desktop version everything works fine just as mobile version (created mobile version through the tagdiv builder) Great function by the way.

If I create new versions of the post template and call for the comments counter and comments form it will not work or rather the link down. Is it possible for a workaround to allow these commentlinks to work with several instances?

Post count: 27744

Hello,

Normally, the elements should work; if those work in other templates, they should also work in the new template. Please check the console and see if there is an error.

Thank you!

Post count: 5

If you take a look at this post. This is a development site for a swedish online hockeysite. Link

Try and access comments from the top. It will not work on one the desktop version because the same is implemented on ipad landscape version.

I know why this is. You can see the reason if you go into inspect mode. The DOM does not like several instances of the same element with the same unique ID.

It would be useful if one could change the name of the identifyer depending on the resolution used.

Post count: 27744
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.